From f09d6a7f71be0bcd81a723d99bd003d2a4ae6f99 Mon Sep 17 00:00:00 2001 From: Vaica <94612053+zqlit@users.noreply.github.com> Date: Thu, 22 Jan 2026 13:28:49 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=20=E4=BF=AE=E5=A4=8D=E5=8F=8B=E5=9C=88?= =?UTF-8?q?=E6=8E=89=E5=B8=A7bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/Ying/layouts/_default/circles.html | 175 ++++++++++++++++++++-- 1 file changed, 159 insertions(+), 16 deletions(-) diff --git a/themes/Ying/layouts/_default/circles.html b/themes/Ying/layouts/_default/circles.html index 6e813eb5..f1e6cd73 100644 --- a/themes/Ying/layouts/_default/circles.html +++ b/themes/Ying/layouts/_default/circles.html @@ -49,11 +49,9 @@ background-color 0.3s ease, border-color 0.3s ease; will-change: transform; - overflow: hidden; - opacity: 0; - animation: ukFadeInUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; text-decoration: none; transform: translateZ(0); /* Enable GPU acceleration */ + overflow: hidden; /* 防止背景图溢出 */ } .friend-circle-list a { @@ -110,17 +108,6 @@ transition: all 0.15s ease; } - @keyframes ukFadeInUp { - 0% { - opacity: 0; - transform: translateY(40px) scale(0.95); - } - 100% { - opacity: 1; - transform: translateY(0) scale(1); - } - } - /* Top: Title */ .fc-title { font-size: 18px; @@ -305,8 +292,74 @@ [data-theme="dark"] .artalk .atk-main-editor { border: 1px solid rgba(255, 255, 255, 0.1) !important; } + + /* Friend Circle Tooltip Card */ + .fc-tooltip { + position: fixed; + z-index: 9999; + background: rgba(255, 255, 255, 0.95); + backdrop-filter: blur(10px); + -webkit-backdrop-filter: blur(10px); + border: 1px solid rgba(0, 0, 0, 0.1); + border-radius: 12px; + padding: 16px; + width: 300px; + box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); + pointer-events: none; + opacity: 0; + transform: scale(0.95) translateY(10px); + transition: opacity 0.2s ease, transform 0.2s ease; + font-size: 14px; + line-height: 1.6; + color: #333; + display: none; /* Hidden by default */ + } + + .fc-tooltip.is-visible { + opacity: 1; + transform: scale(1) translateY(0); + display: block; + } + + .fc-tooltip-title { + font-weight: 700; + margin-bottom: 8px; + font-size: 15px; + color: #000; + border-bottom: 1px solid rgba(0,0,0,0.05); + padding-bottom: 6px; + } + + .fc-tooltip-content { + color: #555; + text-align: justify; + display: -webkit-box; + -webkit-line-clamp: 6; /* Limit lines */ + -webkit-box-orient: vertical; + overflow: hidden; + } + + [data-theme="dark"] .fc-tooltip { + background: rgba(35, 35, 35, 0.95); + border: 1px solid rgba(255, 255, 255, 0.1); + color: #eee; + } + + [data-theme="dark"] .fc-tooltip-title { + color: #fff; + border-bottom-color: rgba(255,255,255,0.1); + } + + [data-theme="dark"] .fc-tooltip-content { + color: #ccc; + } +