Fix large icons in menu items enlarging the menus unnecessarily

Size them according to the icon size and preserve the aspect-ratio.
This commit is contained in:
Simon Hausmann 2025-08-21 13:09:21 +02:00 committed by Simon Hausmann
parent 43a3b9a6b3
commit b6421b0730

View file

@ -139,6 +139,9 @@ export component MenuItemBase {
Image {
source: entry.icon;
accessible-role: none;
image-fit: contain;
width: 100%;
height: label.font-metrics.ascent - label.font-metrics.descent;
}
}