Fix size of CodeMirror to available viewport

This commit is contained in:
2025-08-24 17:15:14 -07:00
parent 7475be087e
commit f43d79769c
4 changed files with 45 additions and 17 deletions
+27
View File
@@ -0,0 +1,27 @@
body {
margin: 0;
}
.app {
height: 100vh;
display: flex;
flex-direction: column;
}
.navbar {
height: 2.5lh;
display: flex;
align-items: center;
gap: 1em;
flex-shrink: 0;
background-color: #cde;
}
.editor-component {
flex: 1;
overflow: hidden;
}
.editor-component .cm-editor {
height: 100%;
}