chore: fixing rabbitai issues

This commit is contained in:
TheodorTomas
2026-01-21 13:07:12 +07:00
parent 726d4b67f9
commit 45fc508f5b
5 changed files with 11 additions and 8 deletions

View File

@@ -123,7 +123,7 @@ export const ThemeStyling = ({
form.setValue("buttonBorderRadius", 4, { shouldDirty: true });
// 3. Inputs (Card-like style)
form.setValue("inputBgColor.light", derivedInputBg, { shouldDirty: true });
form.setValue("inputColor.light", derivedInputBg, { shouldDirty: true });
form.setValue("inputBorderColor.light", derivedCardBorder, { shouldDirty: true }); // Match card border
form.setValue("inputTextColor.light", "#0f172a", { shouldDirty: true });
form.setValue("inputBorderRadius", 8, { shouldDirty: true }); // Match roundness

View File

@@ -142,7 +142,7 @@ export const Modal = ({
ref={modalRef}
style={{
...scalingClasses,
...(borderRadius && {
...(borderRadius !== undefined && {
borderRadius: typeof borderRadius === "number" ? `${borderRadius}px` : borderRadius,
}),
...(background && {

View File

@@ -88,7 +88,10 @@ export const NumberField = ({
<Input
type="number"
{...field}
onChange={(e) => field.onChange(e.target.valueAsNumber)}
onChange={(e) => {
const val = e.target.valueAsNumber;
field.onChange(Number.isNaN(val) ? null : val);
}}
step={step}
max={max}
className="text-xs"