Skip to content

Commit 7a922ef

Browse files
authored
Use consistent scrollbar style (#2837)
1 parent 7375a54 commit 7a922ef

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

pkgs/sketch_pad/lib/editor/editor.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ const codeMirrorOptions = {
392392
},
393393
'tabSize': 2,
394394
'viewportMargin': 100,
395+
'scrollbarStyle': 'simple',
395396
};
396397

397398
enum CompletionType {

pkgs/sketch_pad/web/index.html

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,40 @@
4545
.squiggle-error {
4646
border-bottom: 2px solid #EF5350;
4747
}
48+
49+
.CodeMirror-simplescroll-horizontal div, .CodeMirror-simplescroll-vertical div {
50+
position: absolute;
51+
-moz-box-sizing: border-box;
52+
box-sizing: border-box;
53+
border-radius: 4px;
54+
}
55+
56+
.CodeMirror-simplescroll-horizontal, .CodeMirror-simplescroll-vertical {
57+
position: absolute;
58+
z-index: 6;
59+
}
60+
61+
.CodeMirror-simplescroll-horizontal {
62+
bottom: 0;
63+
left: 0;
64+
height: 9px;
65+
}
66+
67+
.CodeMirror-simplescroll-horizontal div {
68+
bottom: 0;
69+
height: 100%;
70+
}
71+
72+
.CodeMirror-simplescroll-vertical {
73+
right: 0;
74+
top: 0;
75+
width: 9px;
76+
}
77+
78+
.CodeMirror-simplescroll-vertical div {
79+
right: 0;
80+
width: 100%;
81+
}
4882
</style>
4983

5084
<!-- This script adds the flutter initialization JS code -->

0 commit comments

Comments
 (0)