From c9caca2f6e458391b17707032d04302610ff0e94 Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Thu, 16 Oct 2025 00:56:15 -0600 Subject: [PATCH] Style device grid with Quartz theme --- Data/Server/WebUI/src/Devices/Device_List.jsx | 34 ++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/Data/Server/WebUI/src/Devices/Device_List.jsx b/Data/Server/WebUI/src/Devices/Device_List.jsx index 88a7d74..9082a24 100644 --- a/Data/Server/WebUI/src/Devices/Device_List.jsx +++ b/Data/Server/WebUI/src/Devices/Device_List.jsx @@ -42,6 +42,8 @@ const myTheme = themeQuartz.withParams({ headerFontSize: 14, }); +const themeClassName = myTheme.themeName || "ag-theme-quartz"; + function formatLastSeen(tsSec, offlineAfter = 300) { if (!tsSec) return "unknown"; const now = Date.now() / 1000; @@ -196,6 +198,11 @@ export default function DeviceList({ const [repoHash, setRepoHash] = useState(null); const lastRepoFetchRef = useRef(0); + const gridWrapperClass = useMemo( + () => `${themeClassName} borealis-device-grid`, + [themeClassName] + ); + const fetchLatestRepoHash = useCallback(async (options = {}) => { const { force = false } = options || {}; const now = Date.now(); @@ -1074,13 +1081,38 @@ export default function DeviceList({