-
+
updateDeviceSetting([...getDevicePath(), 'base_url'], v)}
onClear={() => updateDeviceSetting([...getDevicePath(), 'base_url'], '')}
containerClassName="flex-1"
- className="px-3 py-2 border border-neutral-300 rounded-lg"
+ className="px-3 py-2.5 bg-neutral-100 border-0 rounded-xl text-sm"
/>
-
+
{mediaSetFiles && (
@@ -279,7 +279,7 @@ function DeviceCard({ device, config, setConfig, isActive, onBrowsingChange }: D
(deviceData.base_url ?? '').includes('://') ||
(deviceData.url ?? '').includes('://')) && (
-
+
updateDeviceSetting([...getDevicePath(), 'cache'], v)}
onClear={() => updateDeviceSetting([...getDevicePath(), 'cache'], '')}
containerClassName="flex-1"
- className="px-3 py-2 border border-neutral-300 rounded-lg"
+ className="px-3 py-2.5 bg-neutral-100 border-0 rounded-xl text-sm"
/>
@@ -305,12 +305,12 @@ function DeviceCard({ device, config, setConfig, isActive, onBrowsingChange }: D
{device.physical
?
{(deviceData.mode ?? 0) === 0 ? 'Read Only' : 'Write Enabled'}
- :
- {([0, 1] as const).map((val, i) => (
+ :
+ {([0, 1] as const).map((val) => (
@@ -322,20 +322,20 @@ function DeviceCard({ device, config, setConfig, isActive, onBrowsingChange }: D
{deviceData.baud !== undefined && (
-
+
updateDeviceSetting([...getDevicePath(), 'baud'], parseInt(v))}
- className="w-full px-3 py-2 border border-neutral-300 rounded-lg"
+ className="w-full px-3 py-2.5 bg-neutral-100 border-0 rounded-xl text-sm"
/>
)}
-
-
Device ID
-
{device.id}
+
+
Device ID
+ {device.id}
@@ -395,60 +395,65 @@ export default function DeviceDetailOverlay({
return (
-
+
e.stopPropagation()}
+ transition={{ type: 'spring', damping: 28, stiffness: 280 }}
+ className="fixed inset-0 bg-white/80 backdrop-blur-md flex flex-col overflow-hidden"
>
{/* ── Header ── */}
-
-
-
-
-
+
+
- {activeDevice.number}
+ {activeDevice.number}
{activeDevice.physical && (
-
+
Physical
)}
-
+
+
+ {activeDevice.name ?? `Device ${activeDevice.number}`}
+
+
{activeDevice.type}
+
+
+
{devices.length > 1 && (
-
+
{activeIndex + 1} / {devices.length}
)}
-
{showCommandMenu && (
-
+
{
console.log(`Reset device ${activeDevice.number}`);
setShowCommandMenu(false);
}}
- className="w-full px-4 py-2 text-left hover:bg-neutral-50 flex items-center gap-2"
+ className="w-full px-4 py-2.5 text-left text-sm hover:bg-neutral-100 flex items-center gap-2 text-neutral-700 transition-colors"
>
Reset Device
@@ -483,7 +488,7 @@ export default function DeviceDetailOverlay({
-
+
);
}