From f78969b147a8aecb5c9e5162d080cdafb3f4adb7 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Mon, 12 May 2025 16:36:40 -0700 Subject: [PATCH] fix: hardcode `fontSize` for tool call status msg --- .idea/jsLinters/eslint.xml | 6 ++++++ .idea/prettier.xml | 1 + gui/src/context/LocalStorage.tsx | 2 -- gui/src/pages/gui/ToolCallDiv/ToolCallStatusMessage.tsx | 3 ++- 4 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 .idea/jsLinters/eslint.xml diff --git a/.idea/jsLinters/eslint.xml b/.idea/jsLinters/eslint.xml new file mode 100644 index 000000000..541945bb0 --- /dev/null +++ b/.idea/jsLinters/eslint.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/prettier.xml b/.idea/prettier.xml index b0c1c68fb..0c83ac4e8 100644 --- a/.idea/prettier.xml +++ b/.idea/prettier.xml @@ -2,5 +2,6 @@ \ No newline at end of file diff --git a/gui/src/context/LocalStorage.tsx b/gui/src/context/LocalStorage.tsx index 8c6d56b3a..5576ffc61 100644 --- a/gui/src/context/LocalStorage.tsx +++ b/gui/src/context/LocalStorage.tsx @@ -18,8 +18,6 @@ export const LocalStorageProvider: React.FC<{ children: React.ReactNode }> = ({ }) => { const [values, setValues] = useState(DEFAULT_LOCAL_STORAGE); - // TODO setvalue - useEffect(() => { const isJetbrains = getLocalStorage("ide") === "jetbrains"; let fontSize = getLocalStorage("fontSize") ?? (isJetbrains ? 15 : 14); diff --git a/gui/src/pages/gui/ToolCallDiv/ToolCallStatusMessage.tsx b/gui/src/pages/gui/ToolCallDiv/ToolCallStatusMessage.tsx index e4e4c6e42..2f405c5a0 100644 --- a/gui/src/pages/gui/ToolCallDiv/ToolCallStatusMessage.tsx +++ b/gui/src/pages/gui/ToolCallDiv/ToolCallStatusMessage.tsx @@ -1,6 +1,7 @@ import { Tool, ToolCallState } from "core"; import Mustache from "mustache"; import { ReactNode } from "react"; +import { getFontSize } from "../../../util"; interface ToolCallStatusMessageProps { tool: Tool | undefined; @@ -65,7 +66,7 @@ export function ToolCallStatusMessage({ message = futureMessage; } return ( -
+
Continue {intro} {message}
);