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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user