Update developer-tools-template.ts

This commit is contained in:
ildar170975 2023-09-01 01:47:30 +03:00 committed by GitHub
parent 6c7efc17c2
commit 544848057b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -256,6 +256,12 @@ class HaPanelDevTemplate extends LitElement {
max(16px, env(safe-area-inset-right))
max(16px, env(safe-area-inset-bottom))
max(16px, env(safe-area-inset-left));
--code-mirror-max-height: calc(100vh - 310px);
}
@media all and (max-width: 870px) {
.content {
--code-mirror-max-height: initial;
}
}
.edit-pane {
@ -291,6 +297,13 @@ class HaPanelDevTemplate extends LitElement {
background-color: var(--secondary-background-color);
padding: 8px;
direction: ltr;
max-height: calc(var(--code-mirror-max-height) + 86px);
overflow: auto;
}
@media all and (max-width: 870px) {
.rendered {
max-height: initial;
}
}
.all_listeners {