Skip to content

Commit

Permalink
Fix Monaco IOS keyboard button (go-gitea#24341) (go-gitea#24347)
Browse files Browse the repository at this point in the history
Backport go-gitea#24341 by @silverwind

Fix go-gitea#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: silverwind <[email protected]>
  • Loading branch information
GiteaBot and silverwind authored Apr 26, 2023
1 parent af5d66b commit d2328c4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions web_src/css/features/codeeditor.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,18 @@
.monaco-scrollable-element > .scrollbar > .slider:active {
background: var(--color-primary-dark-2) !important;
}

/* fomantic styles destroy this element only visible on IOS, restore it */
.monaco-editor .iPadShowKeyboard {
border: none !important;
width: 58px !important;
min-width: 0 !important;
height: 36px !important;
min-height: 0 !important;
margin: 0 !important;
padding: 0 !important;
position: absolute !important;
resize: none !important;
overflow: hidden !important;
border-radius: 4px !important;
}

0 comments on commit d2328c4

Please sign in to comment.