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:
infiinte-persistence 2020-06-09 11:04:38 +02:00 committed by Sean Yesmunt
parent 17d0f00a2e
commit 8068279b5e

View file

@ -41,6 +41,7 @@
.comment__body_container {
padding-right: var(--spacing-s);
flex: 1;
width: 80%;
}
.comment__meta {