From 4fac364600606e424cf20b34e5e2729768f842db Mon Sep 17 00:00:00 2001 From: proddy Date: Fri, 11 Oct 2024 22:01:13 +0100 Subject: [PATCH] table formatting, remove inner scrollbar --- interface/src/app/main/Dashboard.tsx | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/interface/src/app/main/Dashboard.tsx b/interface/src/app/main/Dashboard.tsx index 002727f52..235d2c70f 100644 --- a/interface/src/app/main/Dashboard.tsx +++ b/interface/src/app/main/Dashboard.tsx @@ -88,28 +88,34 @@ const Dashboard = () => { const dashboard_theme = useTheme({ Table: ` - --data-table-library_grid-template-columns: minmax(80px, auto) 120px 40px; + --data-table-library_grid-template-columns: minmax(80px, auto) 120px 32px; `, BaseRow: ` font-size: 14px; .td { - height: 32px; + height: 28px; } `, Row: ` + cursor: pointer; background-color: #1e1e1e; .td { - height: 22px; + // border-top: 1px solid #0000; + // border-bottom: 1px solid #0000; } &:hover .td { - border-top: 1px solid #177ac9; - border-bottom: 1px solid #177ac9; + background-color: #177ac9; + // border-top: 1px solid #177ac9; + // border-bottom: 1px solid #177ac9; } `, BaseCell: ` &:nth-of-type(2) { text-align: right; } + &:nth-of-type(3) { + text-align: right; + } ` }); @@ -164,9 +170,9 @@ const Dashboard = () => { case DeviceType.CUSTOM: return LL.CUSTOM_ENTITIES(0); case DeviceType.ANALOGSENSOR: - return LL.ANALOG_SENSOR(0); + return LL.ANALOG_SENSORS(); case DeviceType.TEMPERATURESENSOR: - return LL.TEMP_SENSOR(); + return LL.TEMP_SENSORS(); case DeviceType.SCHEDULER: return LL.SCHEDULER(); default: @@ -294,7 +300,7 @@ const Dashboard = () => { - + {me.admin && di.dv?.c && !hasMask(di.dv.id, DeviceEntityMask.DV_READONLY) && (