Skip to content

Commit

Permalink
fix: override the styles for body in the sceditor
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoAndresCortes committed Oct 8, 2024
1 parent d98e5b5 commit 06362bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion css/compat/jquery.sceditor.default.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ html {
display: flex;
height: auto;
}
body {
body[contenteditable] {
flex: 1;
background: var(--input-bg);
color: var(--input-color);
Expand Down
2 changes: 1 addition & 1 deletion css/jquery.sceditor.default.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ html {
position: relative;
overflow: auto;
}
body {
body[contenteditable] {
/* Needed to make sure body covers the whole editor and that
long lines don't cause horizontal scrolling */
min-height: 100%;
Expand Down

0 comments on commit 06362bb

Please sign in to comment.