Skip to content

Commit dd63388

Browse files
committed
Allow Monaco tooltips to cover playground navbar
1 parent b94e53f commit dd63388

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/pages/play/Playground.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ const commonMonacoOptions: monaco.editor.IEditorConstructionOptions = {
4747
minimap: { enabled: false },
4848
automaticLayout: true,
4949
scrollbar: { useShadows: false },
50+
fixedOverflowWidgets: true,
5051
};
5152

5253
function InputPane() {

src/pages/play/styles.module.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ $navbar-height: 50px;
4848

4949
.content {
5050
width: 100%;
51-
height: calc(100vh - #{$navbar-height} - 60px);
51+
height: calc(100vh - var(--ifm-navbar-height) - #{$navbar-height});
5252
display: flex;
5353
flex-wrap: wrap;
5454
}
@@ -59,7 +59,6 @@ $navbar-height: 50px;
5959
display: flex;
6060
flex-flow: column;
6161
position: relative;
62-
overflow: hidden;
6362
background-color: var(--monaco-background);
6463
}
6564

0 commit comments

Comments
 (0)