From 890ac5a2139b4e17d369a43fbe7de5b34c92c8cd Mon Sep 17 00:00:00 2001 From: "Nathan.fooo" <86001920+appflowy@users.noreply.github.com> Date: Tue, 4 Jun 2024 20:13:54 +0800 Subject: [PATCH] chore: chat icon (#5465) --- frontend/appflowy_flutter/lib/plugins/ai_chat/chat.dart | 2 +- .../presentation/home/menu/view/view_add_button.dart | 5 ++++- frontend/resources/flowy_icons/16x/chat_ai_page.svg | 5 +---- frontend/rust-lib/flowy-chat/src/chat.rs | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/appflowy_flutter/lib/plugins/ai_chat/chat.dart b/frontend/appflowy_flutter/lib/plugins/ai_chat/chat.dart index cb69ee8d8d..540779b1a1 100644 --- a/frontend/appflowy_flutter/lib/plugins/ai_chat/chat.dart +++ b/frontend/appflowy_flutter/lib/plugins/ai_chat/chat.dart @@ -21,7 +21,7 @@ class AIChatPluginBuilder extends PluginBuilder { } @override - String get menuName => "AIChat"; + String get menuName => "AI Chat"; @override FlowySvgData get icon => FlowySvgs.chat_ai_page_s; diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/view/view_add_button.dart b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/view/view_add_button.dart index 3fa23c8f1c..5d01b2a71f 100644 --- a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/view/view_add_button.dart +++ b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/view/view_add_button.dart @@ -108,7 +108,10 @@ class ViewAddButtonActionWrapper extends ActionCell { final PluginBuilder pluginBuilder; @override - Widget? leftIcon(Color iconColor) => FlowySvg(pluginBuilder.icon); + Widget? leftIcon(Color iconColor) => FlowySvg( + pluginBuilder.icon, + size: const Size.square(16), + ); @override String get name => pluginBuilder.menuName; diff --git a/frontend/resources/flowy_icons/16x/chat_ai_page.svg b/frontend/resources/flowy_icons/16x/chat_ai_page.svg index e39815f94f..e3585e4ec6 100644 --- a/frontend/resources/flowy_icons/16x/chat_ai_page.svg +++ b/frontend/resources/flowy_icons/16x/chat_ai_page.svg @@ -1,4 +1 @@ - - - - + \ No newline at end of file diff --git a/frontend/rust-lib/flowy-chat/src/chat.rs b/frontend/rust-lib/flowy-chat/src/chat.rs index 712caad91a..70e36df27d 100644 --- a/frontend/rust-lib/flowy-chat/src/chat.rs +++ b/frontend/rust-lib/flowy-chat/src/chat.rs @@ -368,7 +368,7 @@ fn stream_send_chat_messages( messages.push(message); }, Err(err) => { - error!("Failed to send chat message: {}", err); + error!("stream chat message error: {}", err); let pb = ChatMessageErrorPB { chat_id: chat_id.clone(), content: message_content.clone(),