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