Skip to content

Commit dd9f056

Browse files
authored
fix: update faded-bottom color with css variable (#139)
Replace hard-coded color with css variable in faded-bottom utility class. Fix broken faded style in setting content. Closes #134
1 parent 1bdb2c1 commit dd9f056

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/features/settings/components/content-section.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { ScrollArea } from '@/components/ui/scroll-area'
21
import { Separator } from '@/components/ui/separator'
32

43
interface ContentSectionProps {
@@ -19,9 +18,9 @@ export default function ContentSection({
1918
<p className='text-muted-foreground text-sm'>{desc}</p>
2019
</div>
2120
<Separator className='my-4 flex-none' />
22-
<ScrollArea className='faded-bottom h-full w-full scroll-smooth pr-4 pb-28'>
21+
<div className='faded-bottom h-full w-full overflow-y-auto scroll-smooth pr-4 pb-12'>
2322
<div className='-mx-1 px-1.5 lg:max-w-xl'>{children}</div>
24-
</ScrollArea>
23+
</div>
2524
</div>
2625
)
2726
}

src/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
}
151151

152152
@utility faded-bottom {
153-
@apply after:pointer-events-none after:absolute after:bottom-0 after:left-0 after:hidden after:h-32 after:w-full after:bg-[linear-gradient(180deg,_transparent_10%,_white_70%)] md:after:block dark:after:bg-[linear-gradient(180deg,_transparent_10%,_black_70%)];
153+
@apply after:pointer-events-none after:absolute after:bottom-0 after:left-0 after:hidden after:h-32 after:w-full after:bg-[linear-gradient(180deg,_transparent_10%,_var(--background)_70%)] md:after:block;
154154
}
155155

156156
/* styles.css */

0 commit comments

Comments
 (0)