Skip to content

Commit 4d5c803

Browse files
silverwindGiteaBot
andauthored
Fix Monaco IOS keyboard button (#24341)
Fix #16188. Turns out the element was completely misaligned by fomantic styles. Add most of the original styles in `!important` form to fix. Tapping the button doesn't do anything useful in Simulator.app, but I guess it's still better to not outright hide it in case it has a possiblity to work. <img width="121" alt="image" src="https://user-images.githubusercontent.com/115237/234379685-4e67f8cd-7e91-4bcc-8e17-9d5b2ebed6cd.png"> Co-authored-by: Giteabot <[email protected]>
1 parent 517f9f5 commit 4d5c803

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

web_src/css/features/codeeditor.css

+15
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,18 @@
3131
.monaco-scrollable-element > .scrollbar > .slider:active {
3232
background: var(--color-primary-dark-2) !important;
3333
}
34+
35+
/* fomantic styles destroy this element only visible on IOS, restore it */
36+
.monaco-editor .iPadShowKeyboard {
37+
border: none !important;
38+
width: 58px !important;
39+
min-width: 0 !important;
40+
height: 36px !important;
41+
min-height: 0 !important;
42+
margin: 0 !important;
43+
padding: 0 !important;
44+
position: absolute !important;
45+
resize: none !important;
46+
overflow: hidden !important;
47+
border-radius: 4px !important;
48+
}

0 commit comments

Comments
 (0)