Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

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

Richard Shiued0747afbf2bc
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/home/home_layout.dart b/frontend/appflowy_flutter/lib/workspace/presentation/home/home_layout.dart
index 63b397176f..2437438acf 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/home/home_layout.dart
+++ b/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;
diff --git a/frontend/appflowy_flutter/packages/flowy_infra/lib/size.dart b/frontend/appflowy_flutter/packages/flowy_infra/lib/size.dart
index 3d0783e74e..9141b471bc 100644
--- a/frontend/appflowy_flutter/packages/flowy_infra/lib/size.dart
+++ b/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 {