Improve: fix white scrollbar issue in Tauri dark theme

- Add color-scheme: dark meta tag and CSS for proper dark scrollbars
- Implement ultra-thin (3px) elegant scrollbars globally
- Remove overflow-hidden that was cutting scrollbar at top
- Clean up redundant scrollbar CSS and component styling
- Optimize scrollbar appearance for both web and Tauri desktop

Fixes scrollbar visibility issues in dark theme across all components.
This commit is contained in:
brenner cruvinel
2025-07-24 20:34:53 -03:00
parent 4ddb6a1995
commit 1a888b8c6a
5 changed files with 39 additions and 98 deletions

View File

@@ -254,7 +254,7 @@ export const ClaudeCodeSession: React.FC<ClaudeCodeSessionProps> = ({
/>
{/* Main content area */}
<div className="flex-1 flex overflow-hidden">
<div className="flex-1 flex">
{showPreview ? (
<SplitPane
left={

View File

@@ -25,16 +25,7 @@ export const ScrollArea = React.forwardRef<HTMLDivElement, ScrollAreaProps>(
return (
<div
ref={ref}
className={cn(
"relative overflow-auto",
// Custom scrollbar styling
"scrollbar-thin scrollbar-thumb-border scrollbar-track-transparent",
"[&::-webkit-scrollbar]:w-2",
"[&::-webkit-scrollbar-track]:bg-transparent",
"[&::-webkit-scrollbar-thumb]:bg-border [&::-webkit-scrollbar-thumb]:rounded-full",
"[&::-webkit-scrollbar-thumb:hover]:bg-border/80",
className
)}
className={cn("relative overflow-auto", className)}
{...props}
>
{children}