From 3406aecec6fe939e3402cc3ac708862ca0d0a4aa Mon Sep 17 00:00:00 2001 From: Innei Date: Tue, 21 Oct 2025 19:32:12 +0800 Subject: [PATCH] fix: update ShortcutComponent styles for improved layout and cursor behavior Signed-off-by: Innei --- .../ai-chat/editor/plugins/shortcut/ShortcutNode.tsx | 6 +++++- .../plugins/shortcut/components/ShortcutComponent.tsx | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/shortcut/ShortcutNode.tsx b/apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/shortcut/ShortcutNode.tsx index cd3647f6b..75740efdc 100644 --- a/apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/shortcut/ShortcutNode.tsx +++ b/apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/shortcut/ShortcutNode.tsx @@ -98,7 +98,11 @@ export class ShortcutNode extends DecoratorNode { return ( - + ) } diff --git a/apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/shortcut/components/ShortcutComponent.tsx b/apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/shortcut/components/ShortcutComponent.tsx index 84d16be49..9a8f0eef5 100644 --- a/apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/shortcut/components/ShortcutComponent.tsx +++ b/apps/desktop/layer/renderer/src/modules/ai-chat/editor/plugins/shortcut/components/ShortcutComponent.tsx @@ -32,7 +32,7 @@ export const ShortcutComponent: React.FC = ({ + # } @@ -45,10 +45,10 @@ export const ShortcutComponent: React.FC = ({
- {shortcutData.name} + {shortcutData.name} {shortcutData.prompt ? ( - + {shortcutData.prompt} ) : null}