修复侧边栏样式

This commit is contained in:
whyour 2023-06-03 01:24:52 +08:00
parent 8f75a54110
commit 26c914d1db
2 changed files with 50 additions and 26 deletions

View File

@ -333,6 +333,7 @@ select:-webkit-autofill:focus {
.ant-pro-sider-logo { .ant-pro-sider-logo {
.title { .title {
display: flex;
height: 32px; height: 32px;
margin: 0 5px; margin: 0 5px;
font-weight: 600; font-weight: 600;
@ -340,6 +341,11 @@ select:-webkit-autofill:focus {
line-height: 32px; line-height: 32px;
vertical-align: middle; vertical-align: middle;
animation: pro-layout-title-hide 0.3s; animation: pro-layout-title-hide 0.3s;
a {
display: inline-flex;
align-items: center;
}
} }
img { img {
@ -353,6 +359,10 @@ select:-webkit-autofill:focus {
// 移动端logo被拉伸 // 移动端logo被拉伸
width: auto !important; width: auto !important;
} }
.ant-image {
display: inline-flex;
}
} }
pre { pre {
@ -396,3 +406,15 @@ pre {
textarea.ant-input { textarea.ant-input {
word-break: break-all; word-break: break-all;
} }
.ant-pro-sider-collapsed,
body[data-mode='phone'] header {
.title {
display: none;
}
}
.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed {
box-shadow: none;
border-right: 1px solid #eee;
}

View File

@ -283,6 +283,7 @@ export default function () {
logo={ logo={
<> <>
<Image preview={false} src="https://qn.whyour.cn/logo.png" /> <Image preview={false} src="https://qn.whyour.cn/logo.png" />
<div className="title">
<span className="title"></span> <span className="title"></span>
<a <a
href={systemInfo?.changeLogLink} href={systemInfo?.changeLogLink}
@ -310,6 +311,7 @@ export default function () {
</Badge> </Badge>
</Tooltip> </Tooltip>
</a> </a>
</div>
</> </>
} }
title={false} title={false}