fix: hardcode fontSize for tool call status msg

This commit is contained in:
Patrick Erichsen 2025-05-12 16:36:40 -07:00
parent 220e2a350c
commit f78969b147
4 changed files with 9 additions and 3 deletions

6
.idea/jsLinters/eslint.xml generated Normal file
View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="EslintConfiguration">
<option name="fix-on-save" value="true" />
</component>
</project>

1
.idea/prettier.xml generated
View file

@ -2,5 +2,6 @@
<project version="4">
<component name="PrettierConfiguration">
<option name="myConfigurationMode" value="AUTOMATIC" />
<option name="myRunOnSave" value="true" />
</component>
</project>

View file

@ -18,8 +18,6 @@ export const LocalStorageProvider: React.FC<{ children: React.ReactNode }> = ({
}) => {
const [values, setValues] = useState<LocalStorageType>(DEFAULT_LOCAL_STORAGE);
// TODO setvalue
useEffect(() => {
const isJetbrains = getLocalStorage("ide") === "jetbrains";
let fontSize = getLocalStorage("fontSize") ?? (isJetbrains ? 15 : 14);

View file

@ -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 (
<div className="block">
<div className="block" style={{ fontSize: getFontSize() }}>
<span>Continue</span> {intro} {message}
</div>
);