fix(workspace): 创作工作台 - 修复线上样式层级并优化 Agent、菜单与素材密度

This commit is contained in:
ddCat
2026-09-20 05:29:52 +08:00
parent b9d60f9807
commit cfcc53a904
21 changed files with 671 additions and 110 deletions

View File

@@ -8,6 +8,7 @@ import { isSpatialWorkbenchPath } from "@/lib/workspace-routes";
import { getWorkspaceAntThemeConfig } from "@/lib/app-theme";
import { useWorkspaceButtonFeedback } from "@/hooks/use-workspace-button-feedback";
import "@/styles/workspace-product.css";
import "@/styles/workspace-menus.css";
const workspaceTheme = getWorkspaceAntThemeConfig();
@@ -33,7 +34,12 @@ export default function UserLayout({ children }: { children: ReactNode }) {
if (adminWorkspace) return children;
return (
<ConfigProvider theme={productWorkspace ? workspaceTheme : undefined}>
<ConfigProvider
theme={productWorkspace ? workspaceTheme : undefined}
select={productWorkspace ? { classNames: { popup: { root: "workspace-quiet-popup" } } } : undefined}
dropdown={productWorkspace ? { classNames: { root: "workspace-quiet-popup" } } : undefined}
popover={productWorkspace ? { classNames: { root: "workspace-quiet-popup" } } : undefined}
>
<div className={cn("app-user-workspace h-dvh overflow-hidden text-foreground", spatialWorkbench && "app-spatial-workspace", productWorkspace && "app-product-workspace")}>
<AppWorkspaceShell>{children}</AppWorkspaceShell>
</div>