修复bug

This commit is contained in:
zqlit committed 2026-05-24 16:00:53 +08:00
1 parent ff228ae6f5
commit e382dc36a5
3 files changed
+36 -61

No files matched your search

+3 -3
View File
@@ -180,7 +180,7 @@ hasCJKLanguage = true
[params.artalk] [params.artalk]
server = "https://artalk.usj.cc" server = "https://artalk.usj.cc"
site = "优世界" site = "优世界"
ai_badge = "捧场王" # 自定义 AI 评论标识 ai_badge = "AI" # 自定义 AI 评论标识
emoticons = "/emotion/OwO.json" emoticons = "/emotion/OwO.json"
gravatar = "https://cravatar.cn/avatar/" gravatar = "https://cravatar.cn/avatar/"
@@ -204,8 +204,8 @@ hasCJKLanguage = true
# AI 评论配置 (AI Comment Configuration) # AI 评论配置 (AI Comment Configuration)
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
[params.ai] [params.ai]
name = "小小赵下士" name = ""
avatar = "/image/avatar/ai.jpg" avatar = "/image/avatar/ai-avatar.jpg"
# provider = "siliconflow" # options: siliconflow, zhipu # provider = "siliconflow" # options: siliconflow, zhipu
# model = "deepseek-ai/DeepSeek-V3" # model = "deepseek-ai/DeepSeek-V3"
Binary file not shown.

After

Width:  |  Height:  |  Size: 225 KiB

+33 -58
View File
@@ -408,18 +408,7 @@ code::-webkit-scrollbar {
display: none !important; display: none !important;
} }
/* AI Comment Badge - Black & White Style */ /* Generic badge base */
.atk-comment .atk-badge {
background: #000 !important;
color: #fff !important;
border: 1px solid #000 !important;
}
[data-theme="dark"] .atk-comment .atk-badge {
background: #fff !important;
color: #000 !important;
border: 1px solid #fff !important;
}
@@ -3655,17 +3644,18 @@ input[type=submit] {
} }
} }
/* Bottom toolbar — frosted glass bar */ /* Bottom toolbar — white frosted glass */
.view-image-tools { .view-image-tools {
background: rgba(28, 28, 30, 0.78) !important; background: rgba(255, 255, 255, 0.72) !important;
backdrop-filter: blur(44px) saturate(200%) !important; backdrop-filter: blur(40px) saturate(180%) !important;
-webkit-backdrop-filter: blur(44px) saturate(200%) !important; -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
border: 1px solid rgba(255, 255, 255, 0.16) !important; border: 1px solid rgba(255, 255, 255, 0.5) !important;
border-radius: 8px !important; border-radius: 8px !important;
padding: 6px 12px !important; padding: 6px 12px !important;
max-width: 360px !important; max-width: 360px !important;
box-shadow: 0 2px 20px rgba(0, 0, 0, 0.38), color: rgba(0, 0, 0, 0.7) !important;
0 0 0 0.5px rgba(255, 255, 255, 0.1) inset !important; box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1),
0 0 0 0.5px rgba(255, 255, 255, 0.3) inset !important;
} }
/* Counter text */ /* Counter text */
@@ -3673,7 +3663,7 @@ input[type=submit] {
font-size: 13px; font-size: 13px;
font-weight: 500; font-weight: 500;
letter-spacing: 0.03em; letter-spacing: 0.03em;
opacity: 0.9; opacity: 0.85;
} }
/* Glass buttons */ /* Glass buttons */
@@ -3681,13 +3671,13 @@ input[type=submit] {
width: 34px !important; width: 34px !important;
height: 34px !important; height: 34px !important;
border-radius: 6px !important; border-radius: 6px !important;
background: rgba(255, 255, 255, 0.14) !important; background: rgba(0, 0, 0, 0.06) !important;
border: 1px solid rgba(255, 255, 255, 0.12); border: 1px solid rgba(0, 0, 0, 0.06);
transition: background 0.2s ease, transform 0.15s ease; transition: background 0.2s ease, transform 0.15s ease;
} }
.view-image-btn:hover { .view-image-btn:hover {
background: rgba(255, 255, 255, 0.28) !important; background: rgba(0, 0, 0, 0.12) !important;
transform: scale(1.06); transform: scale(1.06);
} }
@@ -5079,49 +5069,34 @@ html[data-theme="light"] .atk-loading-spinner svg circle {
/* AI Comment (Embedded in Artalk) */ /* AI Comment — subtle badge only */
.atk-comment.atk-ai-comment { .atk-comment.atk-ai-comment .atk-badge {
/* Subtle distinction background */ display: inline-flex;
/* background: var(--bankuai-color); */ align-items: center;
border-radius: 8px; padding: 2px 8px;
padding: 15px; font-size: 10px;
margin-bottom: 5px; font-weight: 600;
/* border: 1px solid transparent; Prepare for dark mode */ letter-spacing: 0.05em;
color: #fff;
background: linear-gradient(135deg, #c9a84c, #a07d30);
border-radius: 20px;
box-shadow: 0 1px 3px rgba(160, 125, 48, 0.2);
}
.atk-comment.atk-ai-comment .atk-nick {
display: none;
} }
/* Ensure avatar size matches Artalk but with AI flair */
.atk-comment.atk-ai-comment .atk-avatar img { .atk-comment.atk-ai-comment .atk-avatar img {
border: 2px solid #fff;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
transition: transform 0.3s ease; transition: transform 0.3s ease;
} }
.atk-comment.atk-ai-comment:hover .atk-avatar img { .atk-comment.atk-ai-comment:hover .atk-avatar img {
transform: rotate(10deg); transform: rotate(6deg);
} }
/* Custom AI Badge */ [data-theme="dark"] .atk-comment.atk-ai-comment .atk-badge {
.atk-comment.atk-ai-comment .atk-badge { color: #1a1a1a;
display: inline-block; box-shadow: 0 1px 4px rgba(160, 125, 48, 0.3);
padding: 1px 6px;
font-size: 11px;
line-height: 1.4;
color: #fff;
background: linear-gradient(135deg, #60a5fa, #3b82f6);
border-radius: 4px;
font-weight: 500;
margin-left: 5px;
vertical-align: text-bottom;
}
/* Dark Mode Adaptation */
[data-theme="dark"] .atk-comment.atk-ai-comment {
/* background: rgba(255, 255, 255, 0.03); */
/* border: 1px solid rgba(255, 255, 255, 0.05); */
}
[data-theme="dark"] .atk-comment.atk-ai-comment .atk-avatar img {
border-color: #333;
} }
/* Lazy Load Animation */ /* Lazy Load Animation */