From 42d4213207be1163e9d1c4f27b8704a3e04c27a5 Mon Sep 17 00:00:00 2001 From: johnoye742 Date: Fri, 21 Feb 2025 10:47:10 +0100 Subject: [PATCH] Fixes issue #817 with thumbnails Fixes the issue with thumbnails by explicitly setting the icon widget width to always be the minimum preventing overflow. --- src/tab.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tab.rs b/src/tab.rs index f0a1071..c69f38e 100644 --- a/src/tab.rs +++ b/src/tab.rs @@ -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(