table formatting, remove inner scrollbar

This commit is contained in:
proddy
2024-10-11 22:01:13 +01:00
parent c79d5f2890
commit 4fac364600

View File

@@ -88,28 +88,34 @@ const Dashboard = () => {
const dashboard_theme = useTheme({ const dashboard_theme = useTheme({
Table: ` Table: `
--data-table-library_grid-template-columns: minmax(80px, auto) 120px 40px; --data-table-library_grid-template-columns: minmax(80px, auto) 120px 32px;
`, `,
BaseRow: ` BaseRow: `
font-size: 14px; font-size: 14px;
.td { .td {
height: 32px; height: 28px;
} }
`, `,
Row: ` Row: `
cursor: pointer;
background-color: #1e1e1e; background-color: #1e1e1e;
.td { .td {
height: 22px; // border-top: 1px solid #0000;
// border-bottom: 1px solid #0000;
} }
&:hover .td { &:hover .td {
border-top: 1px solid #177ac9; background-color: #177ac9;
border-bottom: 1px solid #177ac9; // border-top: 1px solid #177ac9;
// border-bottom: 1px solid #177ac9;
} }
`, `,
BaseCell: ` BaseCell: `
&:nth-of-type(2) { &:nth-of-type(2) {
text-align: right; text-align: right;
} }
&:nth-of-type(3) {
text-align: right;
}
` `
}); });
@@ -164,9 +170,9 @@ const Dashboard = () => {
case DeviceType.CUSTOM: case DeviceType.CUSTOM:
return LL.CUSTOM_ENTITIES(0); return LL.CUSTOM_ENTITIES(0);
case DeviceType.ANALOGSENSOR: case DeviceType.ANALOGSENSOR:
return LL.ANALOG_SENSOR(0); return LL.ANALOG_SENSORS();
case DeviceType.TEMPERATURESENSOR: case DeviceType.TEMPERATURESENSOR:
return LL.TEMP_SENSOR(); return LL.TEMP_SENSORS();
case DeviceType.SCHEDULER: case DeviceType.SCHEDULER:
return LL.SCHEDULER(); return LL.SCHEDULER();
default: default:
@@ -294,7 +300,7 @@ const Dashboard = () => {
</Tooltip> </Tooltip>
</Cell> </Cell>
<Cell stiff pinRight> <Cell>
{me.admin && {me.admin &&
di.dv?.c && di.dv?.c &&
!hasMask(di.dv.id, DeviceEntityMask.DV_READONLY) && ( !hasMask(di.dv.id, DeviceEntityMask.DV_READONLY) && (