Skip to content

Commit d119cb5

Browse files
committed
editor: fix find widget z-index
When open, the find widget was visible above modal dialogs because of z-index.
1 parent ca50d60 commit d119cb5

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
### Fixed
88
- Fixed terminal layout issues when resizing window vertically.
9+
- Fixed editor find widget visible over modal dialogs.
910

1011
## [2.1.0-beta.3] - 2022-12-28
1112

src/editor/editor.scss

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,20 @@
102102
}
103103
}
104104

105-
// override iOS keyboard button position
106-
.monaco-editor .iPadShowKeyboard {
107-
right: unset !important;
108-
left: 20px;
105+
.monaco-editor {
106+
// override iOS keyboard button position
107+
& .iPadShowKeyboard {
108+
right: unset !important;
109+
left: 20px;
110+
}
111+
112+
// fix find widget in front of dialogs
113+
& .overflow-guard {
114+
z-index: bp.$pt-z-index-content - 1;
115+
}
116+
117+
// allow overflow to overlay content outside of editor
118+
& .overflowingContentWidget {
119+
z-index: bp.$pt-z-index-overlay - 1;
120+
}
109121
}

0 commit comments

Comments
 (0)