mirror of
https://github.com/PlayEdu/backend
synced 2025-06-29 01:14:20 +08:00
左侧菜单和右上角管理员模块优化
This commit is contained in:
parent
f14a81138e
commit
b9ebd8cf87
@ -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>
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user