From f36e3ae378be21f930113f9d94ef1ceaf7014cc0 Mon Sep 17 00:00:00 2001 From: "Lucas.Xu" Date: Tue, 16 Jul 2024 14:51:00 +0800 Subject: [PATCH] chore: bump version 0.6.4 (#5744) --- CHANGELOG.md | 8 +++++--- .../cover/document_immersive_cover.dart | 16 +++++++++++++--- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b6afd8004da3a..69dc1af975763 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,11 @@ # Release Notes -## Version 0.6.4 - 15/07/2024 +## Version 0.6.4 - 16/07/2024 ### New Features -- +- Enhanced the message style on the AI chat page. +- Added the ability to choose cursor color and selection color from a palette in settings page. ### Bug Fixes -- +- Optimized the performance for loading recent pages. +- Fixed an issue where the cursor would jump randomly when typing in the document title on mobile. ## Version 0.6.3 - 08/07/2024 ### New Features diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/cover/document_immersive_cover.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/cover/document_immersive_cover.dart index 92f04719a4cec..43539cea96456 100644 --- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/cover/document_immersive_cover.dart +++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/cover/document_immersive_cover.dart @@ -75,7 +75,9 @@ class _DocumentImmersiveCoverState extends State { child: BlocConsumer( listener: (context, state) { - textEditingController.text = state.name; + if (textEditingController.text.isEmpty) { + textEditingController.text = state.name; + } }, builder: (_, state) { final iconAndTitle = _buildIconAndTitle(context, state); @@ -159,8 +161,16 @@ class _DocumentImmersiveCoverState extends State { state.cover.isNone || state.cover.isPresets ? null : Colors.white, overflow: TextOverflow.ellipsis, ), - onChanged: _rename, - onSubmitted: _rename, + onChanged: (name) => Debounce.debounce( + 'rename', + const Duration(milliseconds: 300), + () => _rename(name), + ), + onSubmitted: (name) => Debounce.debounce( + 'rename', + const Duration(milliseconds: 300), + () => _rename(name), + ), ); }