Skip to content

Commit 487b34f

Browse files
committed
nav.js: force CM height auto via CSS
1 parent bf7795d commit 487b34f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

assets/nav.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,13 @@
6262
style.textContent = `
6363
html.dark-pre body { background:#1a1a2e !important; }
6464
pre#code-pre { display:none !important; }
65+
.CodeMirror { height: auto !important; }
66+
.CodeMirror-scroll { overflow-y: visible !important; overflow-x: auto !important; min-height: 0 !important; }
67+
.CodeMirror-sizer { margin-bottom: 0 !important; }
6568
pre#code-pre { display:none !important; }
69+
.CodeMirror { height: auto !important; }
70+
.CodeMirror-scroll { overflow-y: visible !important; overflow-x: auto !important; min-height: 0 !important; }
71+
.CodeMirror-sizer { margin-bottom: 0 !important; }
6672
#site-nav {
6773
border-bottom: 1px solid #e0e0e0;
6874
padding: 0 2rem;

0 commit comments

Comments
 (0)