fix: header bg color
This commit is contained in:
@@ -81,17 +81,6 @@ export default defineConfig({
|
|||||||
routePrefetch: {
|
routePrefetch: {
|
||||||
defaultPrefetch: 'intent'
|
defaultPrefetch: 'intent'
|
||||||
},
|
},
|
||||||
// fastRefresh: false,
|
|
||||||
targets: {
|
|
||||||
firefox: 79
|
|
||||||
},
|
|
||||||
extraBabelIncludes: [
|
|
||||||
/node_modules\/react-error-overlay/,
|
|
||||||
/node_modules\/@umijs/,
|
|
||||||
/node_modules\/strip-ansi/,
|
|
||||||
/node_modules\/antd/,
|
|
||||||
/node_modules\/rc-/
|
|
||||||
],
|
|
||||||
keepalive: keepAlive,
|
keepalive: keepAlive,
|
||||||
locale: {
|
locale: {
|
||||||
antd: true,
|
antd: true,
|
||||||
|
|||||||
@@ -108,6 +108,18 @@ html[data-theme='realDark'] {
|
|||||||
.ant-result-image {
|
.ant-result-image {
|
||||||
opacity: 0.9;
|
opacity: 0.9;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ant-pro-page-container-affix .ant-pro-page-container-warp {
|
||||||
|
background-color: #292929 !important;
|
||||||
|
transition: none !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
html[data-theme='light'] {
|
||||||
|
.ant-pro-page-container-affix .ant-pro-page-container-warp {
|
||||||
|
background-color: #fff !important;
|
||||||
|
transition: none !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
@@ -118,6 +130,10 @@ body {
|
|||||||
width: 0;
|
width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ant-tabs-tab {
|
||||||
|
transition: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
.ant-pro-page-container-affix {
|
.ant-pro-page-container-affix {
|
||||||
.ant-affix {
|
.ant-affix {
|
||||||
top: 0 !important;
|
top: 0 !important;
|
||||||
@@ -786,6 +802,10 @@ body {
|
|||||||
.ant-pro-page-container-affix .ant-affix .ant-pro-page-container-warp {
|
.ant-pro-page-container-affix .ant-affix .ant-pro-page-container-warp {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
border-bottom: 1px solid var(--ant-color-split);
|
border-bottom: 1px solid var(--ant-color-split);
|
||||||
|
|
||||||
|
.ant-page-header-heading-title {
|
||||||
|
color: var(--ant-color-text) !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-page-header .ant-page-header-heading-extra {
|
.ant-page-header .ant-page-header-heading-extra {
|
||||||
|
|||||||
@@ -52,8 +52,7 @@ const CHECK_RESOURCE_PATH = [
|
|||||||
'/resources/workers',
|
'/resources/workers',
|
||||||
'/cluster-management/clusters/list',
|
'/cluster-management/clusters/list',
|
||||||
'/cluster-management/credentials',
|
'/cluster-management/credentials',
|
||||||
'/cluster-management/clusters/create',
|
'/cluster-management/clusters/create'
|
||||||
''
|
|
||||||
];
|
];
|
||||||
|
|
||||||
type NewRoute = IRoute & {
|
type NewRoute = IRoute & {
|
||||||
@@ -334,7 +333,7 @@ export default (props: any) => {
|
|||||||
<DarkMask></DarkMask>
|
<DarkMask></DarkMask>
|
||||||
<ProLayout
|
<ProLayout
|
||||||
fixSiderbar
|
fixSiderbar
|
||||||
fixedHeader
|
fixedHeader={true}
|
||||||
breadcrumbRender={false}
|
breadcrumbRender={false}
|
||||||
route={route}
|
route={route}
|
||||||
location={location}
|
location={location}
|
||||||
@@ -387,8 +386,8 @@ export default (props: any) => {
|
|||||||
)}
|
)}
|
||||||
</Exception>
|
</Exception>
|
||||||
{NoResourceModal}
|
{NoResourceModal}
|
||||||
|
{contextHolder}
|
||||||
</ProLayout>
|
</ProLayout>
|
||||||
{contextHolder}
|
|
||||||
</ConfigProvider>
|
</ConfigProvider>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user