mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-25 13:57:21 +00:00
Add max height to yaml editor (#8527)
This commit is contained in:
parent
e14d652651
commit
e81002807f
@ -359,6 +359,9 @@ export abstract class HuiElementEditor<T> extends LitElement {
|
||||
.yaml-editor {
|
||||
padding: 8px 0px;
|
||||
}
|
||||
ha-code-editor {
|
||||
--code-mirror-max-height: calc(100vh - 245px);
|
||||
}
|
||||
.error,
|
||||
.warning,
|
||||
.info {
|
||||
|
@ -33,6 +33,7 @@ export const theme = CMEditorView.theme({
|
||||
"var(--code-editor-background-color, var(--card-background-color))",
|
||||
"& ::selection": { backgroundColor: "rgba(var(--rgb-primary-color), 0.3)" },
|
||||
height: "var(--code-mirror-height, auto)",
|
||||
maxHeight: "var(--code-mirror-max-height, unset)",
|
||||
},
|
||||
|
||||
$scroller: { outline: "none" },
|
||||
|
Loading…
x
Reference in New Issue
Block a user