浏览代码

Update settings.tsx

Yifei Zhang 1 年之前
父节点
当前提交
ca0082856a
共有 1 个文件被更改,包括 1 次插入1 次删除
  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"