左侧菜单和右上角管理员模块优化

This commit is contained in:
禺狨 2023-03-09 16:30:21 +08:00
parent f14a81138e
commit b9ebd8cf87
2 changed files with 12 additions and 11 deletions

View File

@ -41,15 +41,12 @@ export const Header: React.FC = () => {
<div></div>
<Button.Group className={styles["button-group"]}>
<Dropdown menu={{ items, onClick }} placement="bottomRight">
<Button type="link">
<Image
preview={false}
width={30}
height={30}
src={avatar}
></Image>
<span className="ml-8 c-default">{user.name}</span>
</Button>
<div className="d-flex">
<img style={{ width: 30, height: 30 }} src={avatar} />
<Button type="link">
<span className="c-default">{user.name}</span>
</Button>
</div>
</Dropdown>
</Button.Group>
</Layout.Header>

View File

@ -82,10 +82,10 @@ code {
flex-direction: column;
}
.c-default{
.c-default {
font-size: 14px;
font-weight: 400;
color: rgba(0,0,0,0.88);
color: rgba(0, 0, 0, 0.88);
line-height: 22px;
}
@ -174,3 +174,7 @@ textarea.ant-input {
.ant-menu-item-only-child > .ant-menu-title-content {
font-weight: 400 !important;
}
.ant-dropdown-menu-item:hover {
background-color: rgba(#ff4d4f, 0.1) !important;
}