Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Commit

Permalink
Keyboard avoidance for mobile, 1.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
moughxyz committed Mar 25, 2019
1 parent 2b1e743 commit 6c682b8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions dist/dist.css
Original file line number Diff line number Diff line change
Expand Up @@ -1899,6 +1899,9 @@ body, html {
height: 100%;
font-size: var(--sn-stylekit-font-size-editor);
}
#plus-editor .note-editor.note-frame.fullscreen {
position: relative !important;
}
#plus-editor pre {
background-color: var(--sn-stylekit-contrast-background-color);
color: var(--sn-stylekit-contrast-foreground-color);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sn-plus-editor",
"version": "1.2.5",
"version": "1.2.6",
"description": "",
"main": "dist/dist.js",
"author": "Standard Notes <[email protected]>",
Expand Down
7 changes: 6 additions & 1 deletion src/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ body, html {
background-color: transparent;
}


#summernote {
flex: 1 1 auto;
width: 100%;
Expand All @@ -15,13 +14,19 @@ body, html {
font-size: var(--sn-stylekit-font-size-editor);
}


#plus-editor {
display: flex;
flex-direction: column;
position: relative;
height: 100%;
font-size: var(--sn-stylekit-font-size-editor);

.note-editor.note-frame.fullscreen {
// On Mobile, resizing the webview to avoid keyboard causes the option bar to be offset because its position is fixed.
position: relative !important;
}

pre {
background-color: var(--sn-stylekit-contrast-background-color);
color: var(--sn-stylekit-contrast-foreground-color);
Expand Down

0 comments on commit 6c682b8

Please sign in to comment.