diff --git a/packages/client/src/components/Settings/ChatSettings.tsx b/packages/client/src/components/Settings/ChatSettings.tsx index da65f53..fa90cb8 100644 --- a/packages/client/src/components/Settings/ChatSettings.tsx +++ b/packages/client/src/components/Settings/ChatSettings.tsx @@ -10,7 +10,11 @@ export const ChatSettings = () => { return ( <> - + Chat diff --git a/packages/client/src/components/Settings/TemplateSettings.tsx b/packages/client/src/components/Settings/TemplateSettings.tsx index 3c8ef27..f6666de 100644 --- a/packages/client/src/components/Settings/TemplateSettings.tsx +++ b/packages/client/src/components/Settings/TemplateSettings.tsx @@ -20,14 +20,18 @@ export const TemplateSettings = () => { return ( <> - + Template { type="number" min="1" max={10_000} - value={width?.toString()} + value={width?.toString() || ""} onValueChange={(v) => setWidth(parseInt(v))} /> @@ -44,14 +48,14 @@ export const TemplateSettings = () => { label="Template X" size="sm" type="number" - value={x.toString()} + value={x?.toString() || ""} onValueChange={(v) => setX(parseInt(v))} /> setY(parseInt(v))} /> @@ -60,7 +64,7 @@ export const TemplateSettings = () => { step={1} minValue={0} maxValue={100} - value={opacity} + value={opacity || 100} onChange={(v) => setOpacity(v as number)} getValue={(v) => v + "%"} />