Center nodes in narrow mode (#9878)

This commit is contained in:
Paulus Schoutsen 2021-08-25 01:22:37 -07:00 committed by GitHub
parent 68fe13a67d
commit 271120999c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -490,9 +490,12 @@ export class HaAutomationTrace extends LitElement {
border-right: 1px solid var(--divider-color); border-right: 1px solid var(--divider-color);
overflow-x: auto; overflow-x: auto;
max-width: 50%; max-width: 50%;
padding-bottom: 16px;
} }
:host([narrow]) .graph { :host([narrow]) .graph {
max-width: 100%; max-width: 100%;
justify-content: center;
display: flex;
} }
.info { .info {