formatting

This commit is contained in:
proddy
2024-11-06 14:34:07 +01:00
parent 74b935c27f
commit e74af57c16
2 changed files with 10 additions and 15 deletions

View File

@@ -107,7 +107,7 @@ const Dashboard = () => {
}, },
&:hover .td { &:hover .td {
background-color: #177ac9; background-color: #177ac9;
} },
`, `,
BaseCell: ` BaseCell: `
&:nth-of-type(2) { &:nth-of-type(2) {
@@ -185,18 +185,16 @@ const Dashboard = () => {
// if its a device (parent node) and has entities // if its a device (parent node) and has entities
if (di.nodes?.length) { if (di.nodes?.length) {
return ( return (
<> <span style="font-weight:bold; font-size: 14px">
<span style="font-size: 14px"> <DeviceIcon type_id={di.t ?? 0} />
<DeviceIcon type_id={di.t ?? 0} /> &nbsp;&nbsp;{showType(di.n, di.t)}
&nbsp;&nbsp;{showType(di.n, di.t)}
</span>
<span style={{ color: 'lightblue' }}>&nbsp;({di.nodes?.length})</span> <span style={{ color: 'lightblue' }}>&nbsp;({di.nodes?.length})</span>
</> </span>
); );
} }
} }
if (di.dv) { if (di.dv) {
return <span style="color:lightgrey">{di.dv.id.slice(2)}</span>; return <span>{di.dv.id.slice(2)}</span>;
} }
}; };
@@ -304,9 +302,7 @@ const Dashboard = () => {
title={formatValue(LL, di.dv?.v, di.dv?.u)} title={formatValue(LL, di.dv?.v, di.dv?.u)}
arrow arrow
> >
<span style={{ color: 'lightgrey' }}> {formatValue(LL, di.dv?.v, di.dv?.u)}
{formatValue(LL, di.dv?.v, di.dv?.u)}
</span>
</Tooltip> </Tooltip>
</Cell> </Cell>

View File

@@ -155,7 +155,6 @@ const Devices = () => {
} }
&.tr.tr-body.row-select.row-select-single-selected { &.tr.tr-body.row-select.row-select-single-selected {
background-color: #177ac9; background-color: #177ac9;
font-weight: normal;
} }
` `
}); });
@@ -169,11 +168,11 @@ const Devices = () => {
HeaderRow: ` HeaderRow: `
.th { .th {
padding: 8px; padding: 8px;
height: 36px;
`, `,
Row: ` Row: `
font-weight: bold;
&:hover .td { &:hover .td {
background-color: #177ac9; background-color: #177ac9;
` `
} }
]); ]);
@@ -216,7 +215,7 @@ const Devices = () => {
background-color: #303030; background-color: #303030;
}, },
&:hover .td { &:hover .td {
background-color: #177ac9; background-color: #177ac9;
} }
` `
} }