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 (
<ScrollContainer
className={cn(
"flex h-full w-full flex-col overflow-hidden pt-4",
className,
)}
className={cn("flex h-full w-full flex-col overflow-hidden", className)}
scrollShadowColor="var(--app-background)"
>
<ul className="flex flex-col">

View File

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