diff --git a/src/app/components/DeviceDetailOverlay.tsx b/src/app/components/DeviceDetailOverlay.tsx index 6f269c3..cb9aaeb 100644 --- a/src/app/components/DeviceDetailOverlay.tsx +++ b/src/app/components/DeviceDetailOverlay.tsx @@ -349,7 +349,9 @@ export default function DeviceDetailOverlay({ const path = getDevicePath(); updateDeviceSetting([...path, 'name'], v); }} - className="w-full px-3 py-2 border border-neutral-300 rounded-lg" + onClear={() => updateDeviceSetting([...getDevicePath(), 'name'], '')} + className="px-3 py-2 border border-neutral-300 rounded-lg" + containerClassName="w-full" /> @@ -364,7 +366,9 @@ export default function DeviceDetailOverlay({ const path = getDevicePath(); updateDeviceSetting([...path, 'base_url'], v); }} - className="flex-1 px-3 py-2 border border-neutral-300 rounded-lg" + onClear={() => updateDeviceSetting([...getDevicePath(), 'base_url'], '')} + containerClassName="flex-1" + className="px-3 py-2 border border-neutral-300 rounded-lg" /> - @@ -401,17 +395,7 @@ export default function DeviceDetailOverlay({ dev.url = newUrl; setConfig(newConfig); }} - className="flex-1 px-3 py-2 border border-neutral-300 rounded-lg" - /> - - @@ -447,7 +436,9 @@ export default function DeviceDetailOverlay({ const path = getDevicePath(); updateDeviceSetting([...path, 'cache'], v); }} - className="flex-1 px-3 py-2 border border-neutral-300 rounded-lg" + onClear={() => updateDeviceSetting([...getDevicePath(), 'cache'], '')} + containerClassName="flex-1" + className="px-3 py-2 border border-neutral-300 rounded-lg" /> - )} diff --git a/src/app/components/IECPage.tsx b/src/app/components/IECPage.tsx index 5c45e6c..2a6a5a9 100644 --- a/src/app/components/IECPage.tsx +++ b/src/app/components/IECPage.tsx @@ -97,7 +97,9 @@ export default function IECPage({ config, setConfig }: IECPageProps) { type="text" value={settings.autoboot || ''} onCommit={(v) => updateSetting(['settings', 'autoboot'], v)} - className="flex-1 px-3 py-2 border border-neutral-300 rounded-lg" + onClear={() => updateSetting(['settings', 'autoboot'], '')} + containerClassName="flex-1" + className="px-3 py-2 border border-neutral-300 rounded-lg" /> + )} + + ); }