From 814cf3b1e74e5903d0bceb55473512ab1c5198b7 Mon Sep 17 00:00:00 2001 From: Jason Staack Date: Sat, 21 Mar 2026 13:18:32 -0500 Subject: [PATCH] fix(ui): fix device header layout for narrow viewports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two-row layout: top row is identity (breadcrumb › dot hostname status), bottom row is metadata left + actions right. Hostname truncates instead of wrapping. Metadata truncates. Actions stay on one line and push against the right edge. No overlap at any width. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../tenants/$tenantId/devices/$deviceId.tsx | 87 +++++++++---------- 1 file changed, 40 insertions(+), 47 deletions(-) diff --git a/frontend/src/routes/_authenticated/tenants/$tenantId/devices/$deviceId.tsx b/frontend/src/routes/_authenticated/tenants/$tenantId/devices/$deviceId.tsx index 0c7f0a6..2cef294 100644 --- a/frontend/src/routes/_authenticated/tenants/$tenantId/devices/$deviceId.tsx +++ b/frontend/src/routes/_authenticated/tenants/$tenantId/devices/$deviceId.tsx @@ -433,54 +433,47 @@ function DeviceDetailPage() {
{/* Device workspace header */}
-
-
- {/* Breadcrumb */} -
- - Devices - - - {device.hostname} -
- {/* Device name + status dot + label */} -
-
-

- {device.hostname} -

- - {device.status} - - -
- {/* Metadata */} -
- {device.model ?? device.board_name ?? '\u2014'} - {' \u00b7 '} - {device.ip_address} - {device.routeros_version && ( - <> - {' \u00b7 '} - v{device.routeros_version} - - )} -
+ {/* Top row: device identity */} +
+ + Devices + + +
+

+ {device.hostname} +

+ + {device.status} + + +
+ {/* Metadata + actions row */} +
+
+ {device.model ?? device.board_name ?? '\u2014'} + {' \u00b7 '} + {device.ip_address} + {device.routeros_version && ( + <> + {' \u00b7 '} + v{device.routeros_version} + + )}
- {/* Actions */} -
+
{user?.role !== 'viewer' && device.routeros_version !== null && ( <>