mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +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 {
|
.yaml-editor {
|
||||||
padding: 8px 0px;
|
padding: 8px 0px;
|
||||||
}
|
}
|
||||||
|
ha-code-editor {
|
||||||
|
--code-mirror-max-height: calc(100vh - 245px);
|
||||||
|
}
|
||||||
.error,
|
.error,
|
||||||
.warning,
|
.warning,
|
||||||
.info {
|
.info {
|
||||||
|
@ -33,6 +33,7 @@ export const theme = CMEditorView.theme({
|
|||||||
"var(--code-editor-background-color, var(--card-background-color))",
|
"var(--code-editor-background-color, var(--card-background-color))",
|
||||||
"& ::selection": { backgroundColor: "rgba(var(--rgb-primary-color), 0.3)" },
|
"& ::selection": { backgroundColor: "rgba(var(--rgb-primary-color), 0.3)" },
|
||||||
height: "var(--code-mirror-height, auto)",
|
height: "var(--code-mirror-height, auto)",
|
||||||
|
maxHeight: "var(--code-mirror-max-height, unset)",
|
||||||
},
|
},
|
||||||
|
|
||||||
$scroller: { outline: "none" },
|
$scroller: { outline: "none" },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user