Skip to content

Commit df3dfcd

Browse files
authored
Fix: Fixed minimum menu width for recent files widget (#11386)
1 parent 6140089 commit df3dfcd

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Files.App/UserControls/Widgets/RecentFilesWidget.xaml.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,8 @@ private void Grid_RightTapped(object sender, RightTappedRoutedEventArgs e)
110110
var menuItems = GetItemMenuItems(item, false);
111111
var (_, secondaryElements) = ItemModelListToContextFlyoutHelper.GetAppBarItemsFromModel(menuItems);
112112

113-
if (!UserSettingsService.PreferencesSettingsService.MoveShellExtensionsToSubMenu)
114-
secondaryElements.OfType<FrameworkElement>()
115-
.ForEach(i => i.MinWidth = Constants.UI.ContextMenuItemsMaxWidth); // Set menu min width if the overflow menu setting is disabled
113+
secondaryElements.OfType<FrameworkElement>()
114+
.ForEach(i => i.MinWidth = Constants.UI.ContextMenuItemsMaxWidth);
116115

117116
secondaryElements.ForEach(i => itemContextMenuFlyout.SecondaryCommands.Add(i));
118117
itemContextMenuFlyout.ShowAt(recentItemsGrid, new FlyoutShowOptions { Position = e.GetPosition(recentItemsGrid) });
@@ -199,7 +198,7 @@ private void OpenFileLocation(RecentItem item)
199198
ItemName = Path.GetFileName(item.RecentPath), // file name w extension
200199
});
201200
}
202-
201+
203202
private async Task UpdateRecentsList(NotifyCollectionChangedEventArgs e)
204203
{
205204
try

0 commit comments

Comments
 (0)