Skip to content

Commit 4fb0a72

Browse files
committed
Change TopBar gradient to vertical (0deg) for top-to-bottom fade
- Change from horizontal (90deg) to vertical (0deg) gradient direction - Creates vertical fade effect: transparent at bottom → solid at 20px up - More natural for sticky header that fades in from bottom of bar - Still maintains dark/light mode compatibility with CSS variables - 20px transition distance for sharp, elegant effect
1 parent 086511d commit 4fb0a72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/TopBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export default function TopBar({
100100
className="sf-top-bar sticky top-0 z-50 p-[24px_16px_16px_16px]"
101101
style={{
102102
background:
103-
"linear-gradient(90deg, rgba(var(--bg-default-rgb), 0) 0%, rgba(var(--bg-default-rgb), 1) 20px)",
103+
"linear-gradient(0deg, rgba(var(--bg-default-rgb), 0) 0%, rgba(var(--bg-default-rgb), 1) 20px)",
104104
}}
105105
>
106106
<div className="sf-top-bar-content w-full max-w-sjofn mx-auto flex items-center justify-between">

0 commit comments

Comments
 (0)