From 529af79115af1e72bcd4d9a0dce63bb89cc4a5ab Mon Sep 17 00:00:00 2001
From: chengmw <chengmingwei_1984122@126.com>
Date: Tue, 07 Apr 2026 15:16:31 +0800
Subject: [PATCH] feat: 优化AppHeader用户信息处理,增加URL解码和localStorage存储
---
web-app/src/components/dashboard/AISuggestionCard.css | 39 +++++++++++++++++++++++++++++++--------
1 files changed, 31 insertions(+), 8 deletions(-)
diff --git a/web-app/src/components/dashboard/AISuggestionCard.css b/web-app/src/components/dashboard/AISuggestionCard.css
index 01b6a3b..6137f5b 100644
--- a/web-app/src/components/dashboard/AISuggestionCard.css
+++ b/web-app/src/components/dashboard/AISuggestionCard.css
@@ -4,11 +4,23 @@
*/
.ai-suggestion-card {
- background: linear-gradient(135deg, #e6f4ff, #f0f7ff);
- border-radius: 8px;
+ background: #1a6fb8;
+ border-radius: 12px;
padding: 14px 16px;
margin-top: 12px;
- border-left: 4px solid #1a6fb8;
+ box-shadow: 0px 4px 6px -4px rgba(0,0,0,0.10), 0px 10px 15px -3px rgba(0,0,0,0.10);
+ position: relative;
+ overflow: hidden;
+}
+
+.ai-suggestion-bg {
+ position: absolute;
+ top: 15px;
+ right: 15px;
+ width: 48px;
+ height: 50px;
+ opacity: 0.1;
+ pointer-events: none;
}
.ai-suggestion-header {
@@ -20,19 +32,19 @@
.ai-suggestion-icon {
font-size: 1rem;
- color: #1a6fb8;
+ color: #fff;
}
.ai-suggestion-title {
font-size: 0.9rem;
font-weight: 600;
- color: #0d4a8a;
+ color: #fff;
}
.ai-suggestion-content {
font-size: 0.85rem;
line-height: 1.6;
- color: #333;
+ color: #fff;
max-height: 80px;
overflow: hidden;
text-overflow: ellipsis;
@@ -47,11 +59,22 @@
}
.ai-suggestion-btn {
- padding: 0;
+ padding: 8px 24px;
font-size: 0.85rem;
- color: #1a6fb8;
+ color: #FFFFFF;
+ background: rgba(255, 255, 255, 0.9);
+ border-radius: 20px;
+ border: none;
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
+ height: auto;
+ line-height: 1.5;
+ margin: 10px;
+ width: 90%;
+ background: rgba(255, 255, 255, 0.20);
+ border-radius: 8px;
}
.ai-suggestion-btn:hover {
color: #0d4a8a;
+ background: rgba(255, 255, 255, 1);
}
--
Gitblit v1.8.0