feat(chat): log websocket traffic

This commit is contained in:
2026-06-24 10:48:36 +08:00
parent a571867620
commit f80b5215a9
6 changed files with 101 additions and 16 deletions
@@ -4,6 +4,7 @@
max-width: 220px;
max-height: 220px;
border-radius: var(--radius-lg, 12px);
border-top-left-radius: 0;
overflow: hidden;
cursor: pointer;
background: var(--color-bubble-background, #fff);
-2
View File
@@ -2,8 +2,6 @@
/**
* ImageBubble 图片气泡
*
* 原始 Dart: lib/ui/chat/widgets/image_bubble.dart63 行)
*
* 支持:
* - base64 data URI 解码(`data:image/png;base64,...`
* - 点击 → 打开全屏查看器
@@ -2,8 +2,6 @@
/**
* MessageContent 消息内容容器
*
* 原始 Dart: lib/ui/chat/widgets/message_content.dart43 行)
*
* 决定渲染 ImageBubble 还是 TextBubble
* - 有 imageUrl:渲染 ImageBubble(图片)
* - 有 content 且非 "[图片]" 占位符:渲染 TextBubble(文字)
@@ -3,6 +3,7 @@
padding: 14px;
border: 1px solid rgba(246, 87, 160, 0.2);
border-radius: 18px;
border-top-left-radius: 0;
background:
linear-gradient(180deg, rgba(255, 244, 248, 0.95), rgba(255, 255, 255, 0.95)),
#ffffff;