瀏覽代碼

refactor: added Platform.isMacOS to validation

Victor Teles 2 年之前
父節點
當前提交
5c011fbd7e
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      frontend/app_flowy/lib/workspace/presentation/home/home_layout.dart

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

@@ -1,3 +1,5 @@
+import 'dart:io' show Platform;
+
 import 'package:app_flowy/workspace/application/home/home_bloc.dart';
 import 'package:flowy_infra/size.dart';
 import 'package:flowy_infra/time/duration.dart';
@@ -38,7 +40,8 @@ class HomeLayout {
     }
 
     homePageLOffset = showMenu ? menuWidth : 0.0;
-    menuSpacing = showMenu ? 0 : 80.0;
+
+    menuSpacing = !showMenu && Platform.isMacOS ? 80.0 : 0.0;
     animDuration = .35.seconds;
 
     editPanelWidth = HomeSizes.editPanelWidth;