fix(chat): refine gradient mask and backdrop styling in ChatInterface

- Updated the gradient mask and backdrop filter in ChatInterface for improved visual effects.
- Adjusted maskImage properties for better clarity and consistency in the UI.

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2025-10-07 13:28:38 +08:00
parent 2a4cfc4069
commit 160e136f0c
@@ -379,13 +379,11 @@ const ChatInterfaceContent = ({ centerInputOnEmpty }: ChatInterfaceProps) => {
{(!centerInputOnEmpty || hasMessages) && (
<div className="absolute inset-x-0 bottom-0 isolate">
<div
className="pointer-events-none absolute inset-x-0 bottom-0 h-44"
className="pointer-events-none absolute inset-x-0 bottom-0 h-44 backdrop-blur-xl backdrop-brightness-110 dark:backdrop-brightness-75"
style={{
maskImage: "linear-gradient(to top, black 70%, rgba(0,0,0,.6) 85%, transparent)",
maskImage: "linear-gradient(to top, black 0%, rgba(0, 0, 0, 0.6) 25%, transparent)",
WebkitMaskImage:
"linear-gradient(to top, black 60%, rgba(0,0,0,.6) 85%, transparent)",
backdropFilter: "blur(22px) brightness(0.6)",
WebkitBackdropFilter: "blur(22px) brightness(0.6)",
"linear-gradient(to top, black 0%, rgba(0, 0, 0, 0.6) 25%, transparent)",
}}
/>