Editor: respect the font-size setting on Android (was hardcoded 16px); viewport already blocks auto-zoom so the hardcode was

unneeded (#100)
This commit is contained in:
Yuri Karamian
2026-06-11 23:45:32 +02:00
parent 4aa399e96e
commit 0f7b1debbb
+4 -2
View File
@@ -8894,12 +8894,14 @@
.editor-container.mobile :global(.editor-content) { .editor-container.mobile :global(.editor-content) {
padding: 8px 16px 220px !important; 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 { .editor-container.mobile .source-editor {
padding: 8px 16px 220px; padding: 8px 16px 220px;
font-size: 15px; font-size: var(--editor-font-size, 15px);
white-space: pre-wrap; white-space: pre-wrap;
word-break: break-word; word-break: break-word;
overflow-x: hidden; overflow-x: hidden;