From e74af57c167a67aac61472140421074a7394d1d9 Mon Sep 17 00:00:00 2001 From: proddy Date: Wed, 6 Nov 2024 14:34:07 +0100 Subject: [PATCH] formatting --- interface/src/app/main/Dashboard.tsx | 18 +++++++----------- interface/src/app/main/Devices.tsx | 7 +++---- 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/interface/src/app/main/Dashboard.tsx b/interface/src/app/main/Dashboard.tsx index eb89f925b..2f2e1e5f7 100644 --- a/interface/src/app/main/Dashboard.tsx +++ b/interface/src/app/main/Dashboard.tsx @@ -107,7 +107,7 @@ const Dashboard = () => { }, &:hover .td { background-color: #177ac9; - } + }, `, BaseCell: ` &:nth-of-type(2) { @@ -185,18 +185,16 @@ const Dashboard = () => { // if its a device (parent node) and has entities if (di.nodes?.length) { return ( - <> - - -   {showType(di.n, di.t)} - + + +   {showType(di.n, di.t)}  ({di.nodes?.length}) - + ); } } if (di.dv) { - return {di.dv.id.slice(2)}; + return {di.dv.id.slice(2)}; } }; @@ -304,9 +302,7 @@ const Dashboard = () => { title={formatValue(LL, di.dv?.v, di.dv?.u)} arrow > - - {formatValue(LL, di.dv?.v, di.dv?.u)} - + {formatValue(LL, di.dv?.v, di.dv?.u)} diff --git a/interface/src/app/main/Devices.tsx b/interface/src/app/main/Devices.tsx index 22ebb45f9..0f5f34e25 100644 --- a/interface/src/app/main/Devices.tsx +++ b/interface/src/app/main/Devices.tsx @@ -155,7 +155,6 @@ const Devices = () => { } &.tr.tr-body.row-select.row-select-single-selected { background-color: #177ac9; - font-weight: normal; } ` }); @@ -169,11 +168,11 @@ const Devices = () => { HeaderRow: ` .th { padding: 8px; - height: 36px; `, Row: ` + font-weight: bold; &:hover .td { - background-color: #177ac9; + background-color: #177ac9; ` } ]); @@ -216,7 +215,7 @@ const Devices = () => { background-color: #303030; }, &:hover .td { - background-color: #177ac9; + background-color: #177ac9; } ` }