fix(ui): unify scrollbar styles across scrollable containers

Add .scrollbar-thin and .scrollbar-thin-edge utility classes in
globals.css and apply them to sidebar, file tree, git changes,
git log, session files, diff preview, and message thread panels.
Replace scattered inline webkit-scrollbar overrides with the
shared classes for consistent appearance and gutter behavior.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
xintaofei
2026-04-09 18:50:14 +08:00
parent 56cd207801
commit 150b927610
9 changed files with 32 additions and 19 deletions

View File

@@ -546,7 +546,7 @@ export function UnifiedDiffPreview({
if (files.length === 0) {
return (
<div className={cn("h-full overflow-auto", className)}>
<div className={cn("h-full overflow-auto scrollbar-thin", className)}>
<pre className="font-mono text-[11px] leading-5 whitespace-pre-wrap text-muted-foreground p-3">
{diffText}
</pre>
@@ -555,7 +555,7 @@ export function UnifiedDiffPreview({
}
return (
<div className={cn("h-full overflow-auto", className)}>
<div className={cn("h-full overflow-auto scrollbar-thin", className)}>
<div className="space-y-3">
{files.map((file) => {
const newFile = isNewFileOnly(file)
@@ -586,7 +586,7 @@ export function UnifiedDiffPreview({
)}
</header>
<div className="overflow-auto">
<div className="overflow-auto scrollbar-thin">
<div className="inline-block min-w-full">
{newFile
? file.hunks.map((hunk) => (