fix: hardcode fontSize for tool call status msg
This commit is contained in:
parent
220e2a350c
commit
f78969b147
4 changed files with 9 additions and 3 deletions
6
.idea/jsLinters/eslint.xml
generated
Normal file
6
.idea/jsLinters/eslint.xml
generated
Normal 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
1
.idea/prettier.xml
generated
|
|
@ -2,5 +2,6 @@
|
|||
<project version="4">
|
||||
<component name="PrettierConfiguration">
|
||||
<option name="myConfigurationMode" value="AUTOMATIC" />
|
||||
<option name="myRunOnSave" value="true" />
|
||||
</component>
|
||||
</project>
|
||||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue