From cc385fa9e4e7055a7e6614eb50a876a2b9617f13 Mon Sep 17 00:00:00 2001 From: evazion Date: Tue, 31 Mar 2020 01:18:23 -0500 Subject: [PATCH] notes: better fix for note body sizing (#4375). Setting max-width causes notes to overflow the note body if they set a fixed `width` or they use `white-space: nowrap` and the line is wider than the max-width. Using `width: min-content` instead makes the note shrink to fit but doesn't prevent it from expanding if it needs to. --- app/javascript/src/styles/specific/notes.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/src/styles/specific/notes.scss b/app/javascript/src/styles/specific/notes.scss index bb249f6c7..540fcf111 100644 --- a/app/javascript/src/styles/specific/notes.scss +++ b/app/javascript/src/styles/specific/notes.scss @@ -12,7 +12,7 @@ background: var(--note-body-background); color: var(--note-body-text-color); min-width: 140px; - max-width: 0; + width: min-content; min-height: 1em; line-height: 1.25; cursor: pointer;