refactor(layout): adopt header-slot page container across pages

This commit is contained in:
jialin
2026-07-01 19:11:47 +08:00
committed by jialin
parent 9d0a5d01b0
commit d07d3b2c99
12 changed files with 264 additions and 206 deletions
+9 -10
View File
@@ -1,4 +1,7 @@
import { PageContainerInner } from '@/pages/_components/page-box';
import {
HeaderLeft,
usePageContentStyle
} from '@/pages/_components/page-box';
import { IconFont } from '@gpustack/core-ui';
import { useIntl } from '@umijs/max';
import { useMemoizedFn } from 'ahooks';
@@ -105,15 +108,11 @@ const LLModels: React.FC = () => {
};
}, [activeKey]);
usePageContentStyle({ padding: 0 });
return (
<PageContainerInner
leftContent={title}
styles={{
containerWrapper: {
padding: 0
}
}}
>
<>
<HeaderLeft>{title}</HeaderLeft>
<DeploymentsContext.Provider
value={{
generateFormValues,
@@ -138,7 +137,7 @@ const LLModels: React.FC = () => {
activeKey={activeKey}
></Tabs>
</DeploymentsContext.Provider>
</PageContainerInner>
</>
);
};