UI Improvements (#10972)

* Update web deps

* Fix tooltip on storage page

* Always show video controls even when zooming

* Get video controls working when video is paused

* Fix control hovering

* Add loading indicator to logs tab

* Show metrics correctly when hovering graph

* Show loading indicators for previews on recordings page

* Remove vitest update

* remove unused

* Make volume props optional
This commit is contained in:
Nicolas Mowen
2024-04-14 10:14:10 -06:00
committed by GitHub
parent a3e2171675
commit 7f424bb3f8
11 changed files with 234 additions and 205 deletions

View File

@@ -92,6 +92,9 @@ export function ThresholdBarGraph({
},
tooltip: {
theme: systemTheme || theme,
y: {
formatter: (val) => `${val}${unit}`,
},
},
markers: {
size: 0,
@@ -118,7 +121,7 @@ export function ThresholdBarGraph({
min: 0,
},
} as ApexCharts.ApexOptions;
}, [graphId, threshold, systemTheme, theme, formatTime]);
}, [graphId, threshold, unit, systemTheme, theme, formatTime]);
useEffect(() => {
ApexCharts.exec(graphId, "updateOptions", options, true, true);
@@ -190,7 +193,7 @@ export function StorageGraph({ graphId, used, total }: StorageGraphProps) {
},
},
tooltip: {
show: false,
enabled: false,
},
xaxis: {
axisBorder: {