Limit the Markdown Editor width in Edit (not New) Mode to prevent overflow.
The MDE used in the "new" section has a parent width parameter to limit itself, while the MDE used in the "edit" section didn't. Fix by limiting ".comment__body_container" to 80%, which takes into account the space taken by the author's avatar. This feels a little bit dirty since it's hard-coded. If there's a way to calculate the avatar width from here, it will be more robust.
This commit is contained in:
parent
17d0f00a2e
commit
8068279b5e
1 changed files with 1 additions and 0 deletions
|
@ -41,6 +41,7 @@
|
|||
.comment__body_container {
|
||||
padding-right: var(--spacing-s);
|
||||
flex: 1;
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
.comment__meta {
|
||||
|
|
Loading…
Reference in a new issue