diff --git a/src/components/Settings.tsx b/src/components/Settings.tsx index f061d7aa..e1bb9264 100644 --- a/src/components/Settings.tsx +++ b/src/components/Settings.tsx @@ -19,6 +19,12 @@ const Settings: React.FC = ({ settings, onSave, onClose, isSaving setLocalSettings(settings) }, [settings]) + useEffect(() => { + // Preload all fonts for the dropdown + const fonts = ['inter', 'lora', 'merriweather', 'open-sans', 'roboto', 'source-serif-4', 'crimson-text', 'libre-baskerville', 'pt-serif'] + fonts.forEach(font => loadFont(font)) + }, []) + useEffect(() => { // Load font for preview when it changes if (localSettings.readingFont) { @@ -49,24 +55,24 @@ const Settings: React.FC = ({ settings, onSave, onClose, isSaving

Reading & Display

-
+
diff --git a/src/index.css b/src/index.css index b7cf565d..cfb6cf57 100644 --- a/src/index.css +++ b/src/index.css @@ -575,8 +575,11 @@ body { .reader-html p, .reader-html div, -.reader-html span { - font-size: 1em; +.reader-html span, +.reader-html li, +.reader-html td, +.reader-html th { + font-size: 1em !important; } .reader-markdown a { @@ -1585,11 +1588,22 @@ body { font-size: 1rem; } +.setting-inline .setting-select { + width: auto; + min-width: 200px; + flex: 1; +} + .setting-select:focus { outline: none; border-color: #646cff; } +.font-select option { + padding: 0.5rem; + font-size: 1rem; +} + .checkbox-label { display: flex !important; align-items: center;