Explorar o código

Update settings.tsx

Yifei Zhang %!s(int64=2) %!d(string=hai) anos
pai
achega
ca0082856a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/components/settings.tsx

+ 1 - 1
app/components/settings.tsx

@@ -232,7 +232,7 @@ export function Settings(props: { closeSettings: () => void }) {
           >
             <input
               type="range"
-              title={config.fontSize.toString() + 'px'}
+              title={`${config.fontSize ?? 14}px`}
               value={config.fontSize}
               min="12"
               max="18"