fix one line editor being scrollable (#7059)

This commit is contained in:
James Gatz
2024-02-05 10:28:14 +01:00
committed by GitHub
parent 2249bb7b98
commit 0fa67c33f8

View File

@@ -1480,6 +1480,12 @@ html {
flex-direction: row;
align-items: center;
}
/* Get the child div element that is inside .Codemirror-scroll, between the elements with class .CodeMirror-sizer and CodeMirror-gutters */
.editor.editor--single-line .CodeMirror-scroll > div:has(+ .CodeMirror-gutters, + .CodeMirror-sizer) {
height: 0!important;
}
.editor.editor--single-line .nunjucks-tag {
font-size: 0.8em !important;
padding-top: 0.3em;