Fix graph menu styling

This commit is contained in:
natsoni
2024-05-04 16:56:02 +02:00
parent 453a2224cd
commit 6d595dcdb6
4 changed files with 11 additions and 12 deletions

View File

@@ -8,7 +8,7 @@ import { WebsocketService } from '../../services/websocket.service';
styleUrls: ['./graphs.component.scss'],
})
export class GraphsComponent implements OnInit {
padding = 'w-50';
flexWrap = false;
constructor(
public stateService: StateService,
@@ -18,8 +18,8 @@ export class GraphsComponent implements OnInit {
ngOnInit(): void {
this.websocketService.want(['blocks']);
if (this.stateService.env.MINING_DASHBOARD === true && this.stateService.env.LIGHTNING === true) {
this.padding = 'w-33';
if (this.stateService.env.ACCELERATOR === true && (this.stateService.env.MINING_DASHBOARD === true || this.stateService.env.LIGHTNING === true)) {
this.flexWrap = true;
}
}
}