mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-03-04 05:27:40 +00:00
fix: convert fontSize type from String to Number
This commit is contained in:
@@ -28,7 +28,8 @@ const readWordWrap = () => {
|
||||
};
|
||||
|
||||
const readFontSize = () => {
|
||||
return localStorage.getItem(CODE_EDITOR_STORAGE_KEYS.fontSize) ?? CODE_EDITOR_DEFAULTS.fontSize;
|
||||
const stored = localStorage.getItem(CODE_EDITOR_STORAGE_KEYS.fontSize);
|
||||
return Number(stored ?? CODE_EDITOR_DEFAULTS.fontSize);
|
||||
};
|
||||
|
||||
export const useCodeEditorSettings = () => {
|
||||
|
||||
@@ -9,7 +9,7 @@ type CodeEditorSurfaceProps = {
|
||||
markdownPreview: boolean;
|
||||
isMarkdownFile: boolean;
|
||||
isDarkMode: boolean;
|
||||
fontSize: string;
|
||||
fontSize: number;
|
||||
showLineNumbers: boolean;
|
||||
extensions: Extension[];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user