feat: adjust scroll shadow

This commit is contained in:
Li Xin 2025-04-20 22:11:46 +08:00
parent 9c9afb383b
commit a39ac2661e
2 changed files with 3 additions and 6 deletions

View File

@ -70,10 +70,7 @@ export function MessageListView({
return ( return (
<ScrollContainer <ScrollContainer
className={cn( className={cn("flex h-full w-full flex-col overflow-hidden", className)}
"flex h-full w-full flex-col overflow-hidden pt-4",
className,
)}
scrollShadowColor="var(--app-background)" scrollShadowColor="var(--app-background)"
> >
<ul className="flex flex-col"> <ul className="flex flex-col">

View File

@ -26,8 +26,8 @@ export function ScrollContainer({
<> <>
<div <div
className={cn( className={cn(
"absolute top-[-1px] right-0 left-0 z-10 h-10 bg-gradient-to-b", "absolute top-0 right-0 left-0 z-10 h-10 bg-gradient-to-t",
`from-[var(--scroll-shadow-color)] to-transparent`, `from-transparent to-[var(--scroll-shadow-color)]`,
)} )}
style={ style={
{ {