fix: use same base width for all screen sizes (#2961)

This commit is contained in:
Richard Shiue 2023-07-12 17:30:37 +08:00 committed by GitHub
parent 88405ad316
commit d0747afbf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 7 deletions

View File

@ -25,10 +25,7 @@ class HomeLayout {
showEditPanel = homeSetting.panelContext.isSome();
menuWidth = Sizes.sideBarMed;
if (context.widthPx >= PageBreaks.desktop) {
menuWidth = Sizes.sideBarLg;
}
menuWidth = Sizes.sideBarWidth;
menuWidth += homeSetting.resizeOffset;

View File

@ -58,9 +58,7 @@ class Sizes {
static double get iconMed => 20;
static double get sideBarMed => 225 * hitScale;
static double get sideBarLg => 290 * hitScale;
static double get sideBarWidth => 250 * hitScale;
}
class Corners {