From 126c7f88f099cffc8b58e3423c972e00b887c727 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9F=B3=E7=A5=9E?= <3162475700@qq.com>
Date: Sat, 7 Sep 2024 10:32:07 +0800
Subject: [PATCH] =?UTF-8?q?=F0=9F=90=AF=E7=BE=8E=E5=8C=96=E6=A8=A1?=
=?UTF-8?q?=E6=80=81=E6=A1=86=EF=BC=8C=E8=A7=A3=E5=86=B3=E5=85=B3=E9=97=AD?=
=?UTF-8?q?=E5=90=8E=E6=A8=A1=E6=80=81=E6=A1=86=E6=97=A0=E6=B3=95=E5=88=A0?=
=?UTF-8?q?=E9=99=A4=E7=9A=84bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
main/fclite.css | 40 +++++++++++++++++++++++++++++++---------
main/fclite.js | 10 +++++++---
2 files changed, 38 insertions(+), 12 deletions(-)
diff --git a/main/fclite.css b/main/fclite.css
index c0bfb83..b5343d0 100644
--- a/main/fclite.css
+++ b/main/fclite.css
@@ -133,7 +133,7 @@ body {
}
.modal-content {
- position: absolute;
+ position: relative;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
@@ -143,11 +143,17 @@ body {
border: 1px solid var(--border-color);
z-index: 1000;
max-height: 90%;
- overflow-y: auto;
+ overflow: hidden;
border-radius: 20px;
transition: opacity 0.3s;
}
+.modal-content:hover {
+ #modal-bg-avatar {
+ transform: scale(1.1);
+ }
+}
+
@media screen and (max-width: 440px) {
.modal-content {
width: 80%;
@@ -156,13 +162,27 @@ body {
#modal-author-avatar {
display: block;
- margin: 0 auto;
- border-radius: 50%;
- width: 100px;
- height: 100px;
+ margin: 5px auto !important;
+ border-radius: 50% !important;
+ width: 110px;
+ height: 110px;
object-fit: cover;
}
+#modal-bg-avatar {
+ position: absolute;
+ filter: blur(5px);
+ z-index: 0;
+ border-radius: 125px 125px 12px 125px !important;
+ margin: 0 !important;
+ width: 250px;
+ height: 250px;
+ right: -20px;
+ bottom: -20px;
+ opacity: 0.2;
+ transition: transform 0.6s ease, bottom 0.3s ease, right 0.3s ease !important; /* 0.3秒的平滑过渡效果 */
+}
+
#modal-author-name-link {
display: block;
text-align: center;
@@ -181,6 +201,8 @@ body {
}
#modal-articles-container {
+ position: relative;
+ z-index: 1;
border-top: var(--hover-color) double 2px;
margin-top: 20px;
padding-top: 10px;
@@ -278,7 +300,7 @@ body {
font-size: 12px;
color: var(--author-color);
padding: 5px;
- transition: box-shadow 0.2s;
+ height: 25px;
}
.card-author:hover {
@@ -293,8 +315,8 @@ body {
display: flex;
padding-right: 10px;
width: fit-content;
- height: 26px;
align-items: center;
+ transition: box-shadow 0.2s;
}
#friend-circle-lite-root .card-author img {
@@ -308,7 +330,7 @@ body {
.card-date {
position: absolute;
z-index: 1;
- bottom: 5px;
+ bottom: 10px;
cursor: default;
right: 10px;
display: flex;
diff --git a/main/fclite.js b/main/fclite.js
index b374985..f0aa2f2 100644
--- a/main/fclite.js
+++ b/main/fclite.js
@@ -42,7 +42,7 @@ function initialize_fc_lite() {
}
}
- fetch(`${UserConfig.private_api_url}all.json`)
+ fetch(`${UserConfig.private_api_url}all`)
.then(response => response.json())
.then(data => {
localStorage.setItem(cacheKey, JSON.stringify(data));
@@ -125,7 +125,7 @@ function initialize_fc_lite() {
function showAuthorArticles(author, avatar, link) {
// 如果不存在,则创建模态框结构
- if (!document.getElementById('modal')) {
+ if (!document.getElementById('fclite-modal')) {
const modal = document.createElement('div');
modal.id = 'modal';
modal.className = 'modal';
@@ -134,6 +134,7 @@ function initialize_fc_lite() {