mirror of
https://github.com/1j01/textual-paint.git
synced 2024-12-21 22:01:31 +03:00
Set min-width on menu popups wide enough for all menu items
The longest one is File > Set As Wallpaper (Centered)
This commit is contained in:
parent
aa1e8dca7f
commit
66ce8df21d
@ -113,12 +113,13 @@ Screen {
|
||||
layer: menu-popup;
|
||||
width: auto;
|
||||
height: auto;
|
||||
min-width: 30;
|
||||
overflow-y: auto;
|
||||
/* calc isn't supported, and this should be determined by the y position anyways, which is set in python */
|
||||
/* max-height: calc(100vh - 3); */
|
||||
max-height: 90vh;
|
||||
/* width: auto doesn't account for the scrollbar... */
|
||||
/* This cuts off a character, but it's not as ugly as having a horizontal scrollbar */
|
||||
/* This can cut off a character, but it's not as ugly as having a horizontal scrollbar */
|
||||
overflow-x: hidden;
|
||||
}
|
||||
/* MenuBar { */
|
||||
|
Loading…
Reference in New Issue
Block a user