fix(workspace): 创作工作台 - 修复线上样式层级并优化 Agent、菜单与素材密度
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user