From d24ef61b281aec783212cf152de009e7569c3f9c Mon Sep 17 00:00:00 2001 From: Innei Date: Thu, 10 Apr 2025 14:06:17 +0800 Subject: [PATCH] feat(desktop): enhance AISummary component with improved styling and loading state - Updated the AISummary component to feature a new gradient background and glowing AI icon for better visual appeal. - Enhanced loading state with animated skeletons for a smoother user experience. - Improved button styling for the copy functionality, ensuring better visibility and interaction. These changes aim to elevate user engagement and aesthetic quality within the component. Signed-off-by: Innei --- .../modules/entry-content/index.shared.tsx | 42 +++++++++++++++---- 1 file changed, 35 insertions(+), 7 deletions(-) diff --git a/apps/desktop/src/renderer/src/modules/entry-content/index.shared.tsx b/apps/desktop/src/renderer/src/modules/entry-content/index.shared.tsx index 9c5be9439..6f6a76db1 100644 --- a/apps/desktop/src/renderer/src/modules/entry-content/index.shared.tsx +++ b/apps/desktop/src/renderer/src/modules/entry-content/index.shared.tsx @@ -340,21 +340,49 @@ export function AISummary({ entryId }: { entryId: string }) { } return ( -
+
+ {/* Ambient gradient background effect */} +
+
-
- - {t("entry_content.ai_summary")} +
+ {/* Glowing AI icon */} +
+ +
+
+ + {t("entry_content.ai_summary")} +
+ {summary.data && ( )}
- - {summary.isLoading ? SummaryLoadingSkeleton : summary.data} + + + {summary.isLoading ? ( +
+
+
+
+
+ ) : ( +
{summary.data}
+ )}
)