Browse Source

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

Richard Shiue 1 year ago
parent
commit
d0747afbf2

+ 1 - 4
frontend/appflowy_flutter/lib/workspace/presentation/home/home_layout.dart

@@ -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;
 

+ 1 - 3
frontend/appflowy_flutter/packages/flowy_infra/lib/size.dart

@@ -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 {