mirror of
https://git.mirrors.martin98.com/https://github.com/bytedance/deer-flow
synced 2025-08-18 00:55:54 +08:00
feat: adjust scroll shadow
This commit is contained in:
parent
9c9afb383b
commit
a39ac2661e
@ -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">
|
||||
|
@ -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={
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user