From 1d40308f52f3d6ca091ddb4a7bf039018129d78f Mon Sep 17 00:00:00 2001 From: xintaofei Date: Wed, 22 Apr 2026 18:39:17 +0800 Subject: [PATCH] refactor(sidebar): simplify folder header styling and fix arrow pixel alignment - Drop the expanded-state background and border on folder headers; keep the unified hover background - Swap the arrow to a ChevronRight/ChevronDown toggle and remove the rotation animation to avoid subpixel rendering drift - Size the arrow icon at 11px so its vertical center lands on an integer pixel - Round the sticky overlay's top offset so it stays pixel-aligned with the virtual list items --- .../sidebar-conversation-list.tsx | 29 ++++++++----------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/src/components/conversations/sidebar-conversation-list.tsx b/src/components/conversations/sidebar-conversation-list.tsx index b2ed1d0..75173cb 100644 --- a/src/components/conversations/sidebar-conversation-list.tsx +++ b/src/components/conversations/sidebar-conversation-list.tsx @@ -14,6 +14,7 @@ import { useTranslations } from "next-intl" import { toast } from "sonner" import { Virtualizer, type VirtualizerHandle } from "virtua" import { + ChevronDown, ChevronRight, Download, FolderOpen, @@ -149,11 +150,9 @@ const FolderHeader = memo(function FolderHeader({