diff --git a/app_flowy/lib/workspace/presentation/stack_page/trash/trash_page.dart b/app_flowy/lib/workspace/presentation/stack_page/trash/trash_page.dart index 2ae3c470ef..4df08f110e 100644 --- a/app_flowy/lib/workspace/presentation/stack_page/trash/trash_page.dart +++ b/app_flowy/lib/workspace/presentation/stack_page/trash/trash_page.dart @@ -3,7 +3,6 @@ import 'package:app_flowy/workspace/application/trash/trash_bloc.dart'; import 'package:app_flowy/workspace/domain/page_stack/page_stack.dart'; import 'package:app_flowy/workspace/presentation/stack_page/trash/widget/sizes.dart'; import 'package:app_flowy/workspace/presentation/stack_page/trash/widget/trash_cell.dart'; -import 'package:app_flowy/workspace/presentation/widgets/home_top_bar.dart'; import 'package:flowy_infra/image.dart'; import 'package:flowy_infra/theme.dart'; import 'package:flowy_infra_ui/style_widget/scrolling/styled_list.dart'; diff --git a/app_flowy/lib/workspace/presentation/widgets/dialogs.dart b/app_flowy/lib/workspace/presentation/widgets/dialogs.dart index b215dcc816..cef20ecf6e 100644 --- a/app_flowy/lib/workspace/presentation/widgets/dialogs.dart +++ b/app_flowy/lib/workspace/presentation/widgets/dialogs.dart @@ -60,6 +60,10 @@ class _CreateTextFieldDialog extends State { onChanged: (text) { newValue = text; }, + onEditingComplete: () { + widget.confirm(newValue); + AppGlobals.nav.pop(); + }, ), const VSpace(10), OkCancelButton( diff --git a/app_flowy/lib/workspace/presentation/widgets/menu/menu.dart b/app_flowy/lib/workspace/presentation/widgets/menu/menu.dart index a6118057ea..cdb6bd39d9 100644 --- a/app_flowy/lib/workspace/presentation/widgets/menu/menu.dart +++ b/app_flowy/lib/workspace/presentation/widgets/menu/menu.dart @@ -101,7 +101,7 @@ class HomeMenu extends StatelessWidget { mainAxisAlignment: MainAxisAlignment.start, children: [ const MenuTopBar(), - const VSpace(16), + const VSpace(10), _renderApps(context), ], ).padding(horizontal: Insets.l), @@ -136,7 +136,7 @@ class HomeMenu extends StatelessWidget { itemCount: menuItems.length, separatorBuilder: (context, index) { if (index == 0) { - return const VSpace(29); + return const VSpace(20); } else { return VSpace(MenuAppSizes.appVPadding); } diff --git a/app_flowy/lib/workspace/presentation/widgets/menu/widget/app/section/item.dart b/app_flowy/lib/workspace/presentation/widgets/menu/widget/app/section/item.dart index 22f6759e19..4a0575e529 100644 --- a/app_flowy/lib/workspace/presentation/widgets/menu/widget/app/section/item.dart +++ b/app_flowy/lib/workspace/presentation/widgets/menu/widget/app/section/item.dart @@ -56,7 +56,7 @@ class ViewSectionItem extends StatelessWidget { List children = [ SizedBox(width: 16, height: 16, child: state.view.thumbnail()), const HSpace(2), - Expanded(child: FlowyText.regular(state.view.name, fontSize: 12)), + Expanded(child: FlowyText.regular(state.view.name, fontSize: 12, overflow: TextOverflow.clip)), ]; if (onHover || state.isEditing) {