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.
This commit is contained in:
evazion
2020-03-31 01:18:23 -05:00
parent 91e5ed67b7
commit cc385fa9e4

View File

@@ -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;