Skip to content

Commit

Permalink
Editable content always takes full width #10785
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerKiKi committed Oct 18, 2024
1 parent b984ac6 commit 8411b75
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions projects/natural-editor/src/lib/editor/editor.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@

::ng-deep {
.ProseMirror {
--padding-right: 8px;
--padding-left: 14px;
position: relative;
}
outline: none;
padding: 4px var(--padding-right) 4px var(--padding-left);
width: calc(
100% - var(--padding-right) - var(--padding-left)
); // Without this, OKpilot empty document will shrink to 0px, making it hard to focus to type something
line-height: 1.2;

.ProseMirror {
word-wrap: break-word;
-webkit-font-variant-ligatures: none;
font-variant-ligatures: none;
Expand Down Expand Up @@ -131,12 +137,6 @@
margin-top: 10px;
}

.ProseMirror {
outline: none;
padding: 4px 8px 4px 14px;
line-height: 1.2;
}

.ProseMirror p {
margin-bottom: 1em;
}
Expand Down

0 comments on commit 8411b75

Please sign in to comment.