Skip to content

Commit

Permalink
fix: broken resource monitor texts
Browse files Browse the repository at this point in the history
  • Loading branch information
adrysn committed Nov 3, 2023
1 parent b286adf commit 0594256
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/backend-ai-resource-monitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -496,12 +496,14 @@ export default class BackendAiResourceMonitor extends BackendAIPage {
) as Switch;
if (document.body.clientWidth > 750 && this.direction == 'horizontal') {
legend.style.display = 'flex';
legend.style.marginTop = '0';
Array.from(this.resourceGauge.children).forEach((elem) => {
(elem as HTMLElement).style.display = 'flex';
});
} else {
if (toggleButton.selected) {
legend.style.display = 'flex';
legend.style.marginTop = '0';
if (document.body.clientWidth < 750) {
this.resourceGauge.style.left = '20px';
this.resourceGauge.style.right = '20px';
Expand Down

0 comments on commit 0594256

Please sign in to comment.