From 19d92cf57e7e0e4741b1c8b4972543ba52289bd7 Mon Sep 17 00:00:00 2001 From: Innei Date: Mon, 27 Oct 2025 20:41:56 +0800 Subject: [PATCH] fix: some element styling Signed-off-by: Innei --- .../ai-chat/components/layouts/ChatInput.tsx | 2 +- .../components/layouts/ChatInterface.tsx | 15 ++----- .../components/layouts/ChatMoreDropdown.tsx | 3 +- .../components/layouts/WelcomeScreen.tsx | 18 ++++---- .../app-layout/subview/SubviewLayout.tsx | 2 +- .../pages/(main)/(layer)/(ai)/ai/index.tsx | 9 +++- .../src/ui/progressive-blur/index.tsx | 42 ++++--------------- 7 files changed, 31 insertions(+), 60 deletions(-) diff --git a/apps/desktop/layer/renderer/src/modules/ai-chat/components/layouts/ChatInput.tsx b/apps/desktop/layer/renderer/src/modules/ai-chat/components/layouts/ChatInput.tsx index 49b4316ca..93befe1d9 100644 --- a/apps/desktop/layer/renderer/src/modules/ai-chat/components/layouts/ChatInput.tsx +++ b/apps/desktop/layer/renderer/src/modules/ai-chat/components/layouts/ChatInput.tsx @@ -152,7 +152,7 @@ export const ChatInput = memo( ) return ( -
+
{/* Input Area */}
diff --git a/apps/desktop/layer/renderer/src/modules/ai-chat/components/layouts/ChatInterface.tsx b/apps/desktop/layer/renderer/src/modules/ai-chat/components/layouts/ChatInterface.tsx index 209b4af4d..0f21e1251 100644 --- a/apps/desktop/layer/renderer/src/modules/ai-chat/components/layouts/ChatInterface.tsx +++ b/apps/desktop/layer/renderer/src/modules/ai-chat/components/layouts/ChatInterface.tsx @@ -59,7 +59,7 @@ import { WelcomeScreen } from "./WelcomeScreen" const SCROLL_BOTTOM_THRESHOLD = 100 const draftMessages = new Map() -const ChatInterfaceContent = ({ centerInputOnEmpty, visualOffsetY }: ChatInterfaceProps) => { +const ChatInterfaceContent = ({ centerInputOnEmpty }: ChatInterfaceProps) => { const hasMessages = useHasMessages() const status = useChatStatus() const chatActions = useChatActions() @@ -343,16 +343,7 @@ const ChatInterfaceContent = ({ centerInputOnEmpty, visualOffsetY }: ChatInterfa const rateLimitExtraHeight = hasRateLimitError ? 40 : 0 return ( -
+
@@ -424,6 +415,7 @@ const ChatInterfaceContent = ({ centerInputOnEmpty, visualOffsetY }: ChatInterfa
( diff --git a/apps/desktop/layer/renderer/src/modules/ai-chat/components/layouts/ChatMoreDropdown.tsx b/apps/desktop/layer/renderer/src/modules/ai-chat/components/layouts/ChatMoreDropdown.tsx index 380f29530..26bb9024b 100644 --- a/apps/desktop/layer/renderer/src/modules/ai-chat/components/layouts/ChatMoreDropdown.tsx +++ b/apps/desktop/layer/renderer/src/modules/ai-chat/components/layouts/ChatMoreDropdown.tsx @@ -94,11 +94,10 @@ export const ChatMoreDropdown = ({ : "Switch to Fixed Panel"} + )} - - settingModalPresent("ai")}> AI Settings diff --git a/apps/desktop/layer/renderer/src/modules/ai-chat/components/layouts/WelcomeScreen.tsx b/apps/desktop/layer/renderer/src/modules/ai-chat/components/layouts/WelcomeScreen.tsx index 3d329f18e..04426e10b 100644 --- a/apps/desktop/layer/renderer/src/modules/ai-chat/components/layouts/WelcomeScreen.tsx +++ b/apps/desktop/layer/renderer/src/modules/ai-chat/components/layouts/WelcomeScreen.tsx @@ -62,15 +62,17 @@ const DefaultWelcomeHeader = ({ description }: { description: string }) => ( animate={{ opacity: 1, y: 0 }} className="space-y-6 text-center" > -
- -
-
-

- AI -

+
+
+ +
+
+

+ AI +

-

{description}

+

{description}

+
) diff --git a/apps/desktop/layer/renderer/src/modules/app-layout/subview/SubviewLayout.tsx b/apps/desktop/layer/renderer/src/modules/app-layout/subview/SubviewLayout.tsx index 167952eea..ca5e4ac39 100644 --- a/apps/desktop/layer/renderer/src/modules/app-layout/subview/SubviewLayout.tsx +++ b/apps/desktop/layer/renderer/src/modules/app-layout/subview/SubviewLayout.tsx @@ -161,7 +161,7 @@ function SubviewLayoutInner() { {/* Enhanced Header with smooth transitions */}
diff --git a/apps/desktop/layer/renderer/src/pages/(main)/(layer)/(ai)/ai/index.tsx b/apps/desktop/layer/renderer/src/pages/(main)/(layer)/(ai)/ai/index.tsx index 731c21b1e..1b85bbcc7 100644 --- a/apps/desktop/layer/renderer/src/pages/(main)/(layer)/(ai)/ai/index.tsx +++ b/apps/desktop/layer/renderer/src/pages/(main)/(layer)/(ai)/ai/index.tsx @@ -1,3 +1,5 @@ +import { cn } from "@follow/utils" + import { AIChatRoot } from "~/modules/ai-chat/components/layouts/AIChatRoot" import { ChatPageHeader } from "~/modules/ai-chat/components/layouts/ChatHeader" import { ChatInterface } from "~/modules/ai-chat/components/layouts/ChatInterface" @@ -5,12 +7,15 @@ import { ChatInterface } from "~/modules/ai-chat/components/layouts/ChatInterfac export const Component = () => { return (
- +
) diff --git a/packages/internal/components/src/ui/progressive-blur/index.tsx b/packages/internal/components/src/ui/progressive-blur/index.tsx index d49573872..351a59470 100644 --- a/packages/internal/components/src/ui/progressive-blur/index.tsx +++ b/packages/internal/components/src/ui/progressive-blur/index.tsx @@ -44,27 +44,13 @@ export function LinearBlur({ ...props.style, }} > -
+
{/* Full blur at 100-falloffPercentage% */} {actualSteps > 1 && (
(
))}