From 443f0a4f6f7940b23582858c69691014b6f5a3c6 Mon Sep 17 00:00:00 2001 From: SengokuCola <1026294844@qq.com> Date: Tue, 15 Jul 2025 02:53:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=B7=BB=E5=8A=A0=E6=80=9D=E8=80=83?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E5=8F=91=E9=80=81=EF=BC=8C=E4=BC=98=E5=8C=96?= =?UTF-8?q?s4u=E9=98=9F=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mais4u/mais4u_chat/context_web_manager.py | 193 ++++++++++++------ src/mais4u/mais4u_chat/loading.py | 31 +++ src/mais4u/mais4u_chat/s4u_chat.py | 84 ++++++-- 3 files changed, 226 insertions(+), 82 deletions(-) create mode 100644 src/mais4u/mais4u_chat/loading.py diff --git a/src/mais4u/mais4u_chat/context_web_manager.py b/src/mais4u/mais4u_chat/context_web_manager.py index 844782092..0c3ac4f6a 100644 --- a/src/mais4u/mais4u_chat/context_web_manager.py +++ b/src/mais4u/mais4u_chat/context_web_manager.py @@ -147,49 +147,30 @@ class ContextWebManager: border-left: 4px solid #00ff88; backdrop-filter: blur(5px); animation: slideIn 0.3s ease-out; + transform: translateY(0); + transition: transform 0.5s ease, opacity 0.5s ease; } .message:hover { background: rgba(0, 0, 0, 0.5); transform: translateX(5px); transition: all 0.3s ease; } - .user-info { - display: flex; - justify-content: space-between; - align-items: center; - margin-bottom: 8px; - } - .username { - font-weight: bold; - color: #00ff88; - font-size: 18px; - } - .timestamp { - color: #888; - font-size: 14px; - } - .group-name { - color: #60a5fa; - font-size: 14px; - font-style: italic; - } - .content { - font-size: 20px; + .message-line { line-height: 1.4; word-wrap: break-word; + font-size: 24px; } - .status { - position: fixed; - top: 20px; - right: 20px; - background: rgba(0, 0, 0, 0.7); - color: #888; - font-size: 12px; - padding: 8px 12px; - border-radius: 20px; - backdrop-filter: blur(10px); - z-index: 1000; + .username { + color: #00ff88; } + .content { + color: #ffffff; + } + + .new-message { + animation: slideInNew 0.6s ease-out; + } + .debug-btn { position: fixed; bottom: 20px; @@ -217,6 +198,16 @@ class ContextWebManager: transform: translateY(0); } } + @keyframes slideInNew { + from { + opacity: 0; + transform: translateY(50px) scale(0.95); + } + to { + opacity: 1; + transform: translateY(0) scale(1); + } + } .no-messages { text-align: center; color: #666; @@ -227,7 +218,6 @@ class ContextWebManager: