mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
formatting
This commit is contained in:
@@ -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">
|
||||
<DeviceIcon type_id={di.t ?? 0} />
|
||||
{showType(di.n, di.t)}
|
||||
</span>
|
||||
<span style="font-weight:bold; font-size: 14px">
|
||||
<DeviceIcon type_id={di.t ?? 0} />
|
||||
{showType(di.n, di.t)}
|
||||
<span style={{ color: 'lightblue' }}> ({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>
|
||||
{formatValue(LL, di.dv?.v, di.dv?.u)}
|
||||
</Tooltip>
|
||||
</Cell>
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user