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 {
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 (
<>
<span style="font-size: 14px">
<span style="font-weight:bold; font-size: 14px">
<DeviceIcon type_id={di.t ?? 0} />
&nbsp;&nbsp;{showType(di.n, di.t)}
</span>
<span style={{ color: 'lightblue' }}>&nbsp;({di.nodes?.length})</span>
</>
</span>
);
}
}
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)}
arrow
>
<span style={{ color: 'lightgrey' }}>
{formatValue(LL, di.dv?.v, di.dv?.u)}
</span>
</Tooltip>
</Cell>

View File

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