Fixes issue #817 with thumbnails

Fixes the issue with thumbnails by explicitly setting the icon widget width to always be the minimum preventing overflow.
This commit is contained in:
johnoye742 2025-02-21 10:47:10 +01:00
parent 491b46a131
commit 42d4213207

View file

@ -4031,7 +4031,8 @@ impl Tab {
widget::button::custom(
widget::icon::icon(item.icon_handle_grid.clone())
.content_fit(ContentFit::Contain)
.size(icon_sizes.grid()),
.size(icon_sizes.grid())
.width(Length::Shrink),
)
.padding(space_xxxs)
.class(button_style(