From 0f7b1debbb9fec359d1f73cba5031c13465af990 Mon Sep 17 00:00:00 2001 From: Yuri Karamian Date: Thu, 11 Jun 2026 23:45:32 +0200 Subject: [PATCH] Editor: respect the font-size setting on Android (was hardcoded 16px); viewport already blocks auto-zoom so the hardcode was unneeded (#100) --- src/lib/components/Editor.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/components/Editor.svelte b/src/lib/components/Editor.svelte index ece1641..5569267 100644 --- a/src/lib/components/Editor.svelte +++ b/src/lib/components/Editor.svelte @@ -8894,12 +8894,14 @@ .editor-container.mobile :global(.editor-content) { padding: 8px 16px 220px !important; - font-size: 16px !important; + /* Respect the user's font-size setting; 16px is the default. (issue #100) + Auto-zoom isn't a concern: the viewport sets user-scalable=no. */ + font-size: var(--editor-font-size, 16px) !important; } .editor-container.mobile .source-editor { padding: 8px 16px 220px; - font-size: 15px; + font-size: var(--editor-font-size, 15px); white-space: pre-wrap; word-break: break-word; overflow-x: hidden;