From 30f1a5bf9daac70477d5f77b95a88f45c46550d0 Mon Sep 17 00:00:00 2001 From: Jack Harper Date: Tue, 12 Nov 2024 10:37:48 +0000 Subject: [PATCH] layout fixes - fix overflow, make desktop use white space, reduce padding on mobile, keep table headers etc. fixed at w-1/3 --- app/components/Block.tsx | 6 +++--- app/components/Group.tsx | 12 ++++++------ app/components/InstrumentPage.tsx | 2 +- app/components/__snapshots__/Block.test.tsx.snap | 6 +++--- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/app/components/Block.tsx b/app/components/Block.tsx index 50c10da..dc9ad0d 100644 --- a/app/components/Block.tsx +++ b/app/components/Block.tsx @@ -45,7 +45,7 @@ export default function Block({ setShowAdvanced(!showAdvanced); }} > - + - + {showAdvanced && "Readback: "} {pv.value} {pv.units != null && pv.units} @@ -91,7 +91,7 @@ export default function Block({ )} - + {pv.runcontrol_enabled && (pv.runcontrol_inrange ? "✅" : "❌")} diff --git a/app/components/Group.tsx b/app/components/Group.tsx index 0cd97ec..7928d2a 100644 --- a/app/components/Group.tsx +++ b/app/components/Group.tsx @@ -28,14 +28,14 @@ export default function Group({ {group.name} - - - - - + + + + + - + {group.blocks.map((pv) => { return ( Loading...; } return ( -
+
BlockValueIn-Range
BlockValueIn-Range