From d0747afbf2bcea901d1096250177e89684ce394c Mon Sep 17 00:00:00 2001 From: Richard Shiue <71320345+richardshiue@users.noreply.github.com> Date: Wed, 12 Jul 2023 17:30:37 +0800 Subject: [PATCH] fix: use same base width for all screen sizes (#2961) --- .../lib/workspace/presentation/home/home_layout.dart | 5 +---- frontend/appflowy_flutter/packages/flowy_infra/lib/size.dart | 4 +--- 2 files changed, 2 insertions(+), 7 deletions(-) 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 {