代码提交

This commit is contained in:
董宏凯 committed 2026-07-24 11:24:11 +08:00
1 parent 28bf1ac7b2
commit 91ba47bf47
4 files changed
+55 -21

No files matched your search

+6 -1
View File
@@ -101,6 +101,11 @@ export default function ChatPage() {
const router = useRouter();
const searchParams = useSearchParams();
const pathname = usePathname();
// `chatMode=full` is used by an embedded standard chat. It intentionally
// overrides the user's compact-layout preference for this route only, so
// the page keeps the full landing composition and its agent/history sidebar.
const fullChatMode =
searchParams.get("chatMode")?.trim().toLowerCase() === "full";
const { open: historySidebarOpen, toggleSidebar: toggleHistorySidebar } =
useSidebar();
const { t } = useI18n();
@@ -452,7 +457,7 @@ export default function ChatPage() {
// 主题底图(workspace-chat-bg)不生效。非紧凑(嵌入/standalone)保持原样。
const layoutMode = effectiveLayoutMode;
const chromeByPreference =
layoutMode === "full"
fullChatMode || layoutMode === "full"
? true
: layoutMode === "compact"
? false