feat(miniprogram): add workbench logo and welcome user stack above logout
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
7547e4e142
commit
24572931dc
2 files changed
+52
-16
No files matched your search
@@ -63,6 +63,27 @@ page {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.mp-header__brand {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 20rpx;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.mp-header__logo {
|
||||
height: 64rpx;
|
||||
width: auto;
|
||||
flex-shrink: 0;
|
||||
border-radius: 12rpx;
|
||||
background: rgba(255, 255, 255, 0.18);
|
||||
}
|
||||
|
||||
.mp-header__brand-text {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.mp-header__main {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
@@ -91,7 +112,6 @@ page {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 16rpx;
|
||||
width: 100%;
|
||||
margin-top: 28rpx;
|
||||
box-sizing: border-box;
|
||||
@@ -104,16 +124,23 @@ page {
|
||||
justify-content: center;
|
||||
gap: 8rpx;
|
||||
flex-shrink: 0;
|
||||
max-width: 42%;
|
||||
max-width: 70%;
|
||||
text-align: right;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.mp-header__welcome {
|
||||
font-size: 22rpx;
|
||||
line-height: 1.3;
|
||||
opacity: 0.9;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.mp-header__user-name {
|
||||
font-size: 26rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: 600;
|
||||
line-height: 1.3;
|
||||
max-width: 45%;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
@@ -121,6 +148,7 @@ page {
|
||||
}
|
||||
|
||||
.mp-header__logout {
|
||||
margin-top: 4rpx;
|
||||
font-size: 22rpx;
|
||||
line-height: 1.3;
|
||||
padding: 6rpx 16rpx;
|
||||
|
||||
Reference in new issue
Block a user