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:
@@ -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) => (
|
||||
|
||||
Reference in New Issue
Block a user