Skip to content

Commit 5c79d70

Browse files
committed
fix: show scrollbar, hide when not hovered (for windows)
1 parent 59a39eb commit 5c79d70

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packages/graphql-playground-react/src/styles/graphiql_dark.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -787,12 +787,17 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {
787787
/* 30px is the magic margin used to hide the element's real scrollbars */
788788
/* See overflow: hidden in .CodeMirror */
789789
margin-bottom: -30px;
790-
margin-right: -30px;
790+
margin-right: 20px;
791791
outline: none; /* Prevent dragging from highlighting the element */
792-
overflow: scroll !important; /* Things will break if this is overridden */
793792
padding-bottom: 30px;
794793
position: relative;
794+
overflow: hidden !important; /* Things will break if this is overridden */
795795
}
796+
797+
.CodeMirror-scroll:hover {
798+
overflow: scroll !important; /* Things will break if this is overridden */
799+
}
800+
796801
.CodeMirror-sizer {
797802
border-right: 30px solid transparent;
798803
position: relative;

0 commit comments

Comments
 (0)