From 26336c3daa9a585d4f14121b3bffa5d5860bbf07 Mon Sep 17 00:00:00 2001 From: iven Date: Thu, 9 Apr 2026 23:58:00 +0800 Subject: [PATCH] fix(ui): button overlap + Markdown rendering (BUG-012, BUG-013) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BUG-012: Move side panel toggle button below header (top-3 → top-[52px]) to avoid overlap with "详情" button in chat header. BUG-013: Add rich Markdown component overrides to StreamingText: - Code blocks: dark bg, border, rounded, overflow-x-auto - Inline code: subtle bg highlight - Tables: full borders, alternating header bg, proper padding - Lists: disc/decimal markers, spacing - Headings: proper hierarchy sizes - Blockquotes: left border + subtle bg - Links: blue underlined with hover --- .../src/components/ai/ResizableChatLayout.tsx | 4 +- desktop/src/components/ai/StreamingText.tsx | 129 ++++++++++++++++-- 2 files changed, 120 insertions(+), 13 deletions(-) diff --git a/desktop/src/components/ai/ResizableChatLayout.tsx b/desktop/src/components/ai/ResizableChatLayout.tsx index 8046d73..7d35334 100644 --- a/desktop/src/components/ai/ResizableChatLayout.tsx +++ b/desktop/src/components/ai/ResizableChatLayout.tsx @@ -66,7 +66,7 @@ export function ResizableChatLayout({ {chatPanel}