diff --git a/frontend/src/app/workspace/chats/[thread_id]/page.tsx b/frontend/src/app/workspace/chats/[thread_id]/page.tsx index a3c64be1..65158b4f 100644 --- a/frontend/src/app/workspace/chats/[thread_id]/page.tsx +++ b/frontend/src/app/workspace/chats/[thread_id]/page.tsx @@ -28,6 +28,7 @@ import { MessageList } from "@/components/workspace/messages"; import { ThreadContext } from "@/components/workspace/messages/context"; import { Tooltip } from "@/components/workspace/tooltip"; import { useSpecificChatMode } from "@/components/workspace/use-chat-mode"; +import { useBrand } from "@/core/brand/provider"; import { Welcome } from "@/components/workspace/welcome"; import { getAPIClient } from "@/core/api"; import { sanitizeArtifactPaths } from "@/core/artifacts/utils"; @@ -48,6 +49,7 @@ import motivationSlogans from "./motivation-slogans.json"; export default function ChatPage() { const { t } = useI18n(); + const { brand } = useBrand(); useSpecificChatMode(); const [sloganIndex, setSloganIndex] = useState(0); const [settings, setSettings] = useLocalSettings(); @@ -345,6 +347,7 @@ export default function ChatPage() { className={cn( "m-auto flex h-screen min-h-svh overflow-hidden rounded-t-[20px] transition-[width] duration-300 ease-in-out", artifactsOpen ? "w-full" : "w-[70%]", + brand === "sxwz" && artifactsOpen === false && "translate-x-[-172px]", )} >
@@ -374,6 +377,7 @@ export default function ChatPage() { isChatting: false, }); router.replace(`/workspace/chats/${threadId}?is_chatting=false`) + setArtifactsOpen(false); } } > @@ -575,6 +579,7 @@ export default function ChatPage() { className={cn( "pointer-events-auto relative w-full max-w-[720px]", showWelcomeStyle && "-translate-y-[calc(50vh-96px)]", + brand === "sxwz" && "-translate-x-[172px]" )} > {!(showWelcomeStyle && thread.isThreadLoading) ? (