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.

refactor: added Platform.isMacOS to validation

Victor Teles5c011fbd7ec8
diff --git a/frontend/app_flowy/lib/workspace/presentation/home/home_layout.dart b/frontend/app_flowy/lib/workspace/presentation/home/home_layout.dart
index 94cb1874cd..5194b9edb7 100644
--- a/frontend/app_flowy/lib/workspace/presentation/home/home_layout.dart
+++ b/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;