Skip to content

Commit 74663f1

Browse files
Settings: Clamp sidebar width to min/max values
1 parent 6591701 commit 74663f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Files.App/Services/Settings/AppearanceSettingsService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ public AppearanceSettingsService(ISettingsSharingContext settingsSharingContext)
1616

1717
public double SidebarWidth
1818
{
19-
get => Get(Math.Min(Math.Max(Get(255d), Constants.UI.MinimumSidebarWidth), 500d));
20-
set => Set(value);
19+
get => Get(255d);
20+
set => Set(Math.Min(Math.Max(value, Constants.UI.MinimumSidebarWidth), Constants.UI.MaximumSidebarWidth));
2121
}
2222

2323
public bool IsSidebarOpen

0 commit comments

Comments
 (0)