增加修改个人信息和修改密码菜单。

This commit is contained in:
2026-08-25 23:54:42 +08:00
parent 16ba817ecf
commit 20395a79a2
5 changed files with 189 additions and 12 deletions
+39
View File
@@ -33,6 +33,45 @@ body {
.admin-header #username {
margin-left: auto;
}
.user-menu-wrapper {
position: relative;
margin-left: auto;
}
.user-menu-wrapper #username {
margin-left: 0;
}
.user-menu {
position: absolute;
top: calc(100% + 4px);
right: 0;
z-index: 1100;
display: none;
min-width: 140px;
padding: 4px 0;
background: #fff;
border: 1px solid #e8e8e8;
border-radius: 4px;
box-shadow: 0 3px 12px rgba(0,0,0,0.16);
}
.user-menu-wrapper:hover .user-menu,
.user-menu-wrapper:focus-within .user-menu {
display: block;
}
.user-menu button {
display: block;
width: 100%;
padding: 9px 14px;
border: 0;
background: transparent;
color: #333;
text-align: left;
cursor: pointer;
font-size: 13px;
}
.user-menu button:hover {
background: #f5f5f5;
color: #1890ff;
}
.admin-header span {
background: transparent;
padding: 5px 12px;