fix(documents): refine unread badges and mark all read
This commit is contained in:
@@ -216,11 +216,14 @@
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
max-width: 128px;
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
color: currentColor;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
overflow: visible;
|
||||
opacity: 1;
|
||||
transition:
|
||||
max-width var(--rail-motion-duration) var(--rail-motion-ease),
|
||||
@@ -229,6 +232,16 @@
|
||||
will-change: max-width, opacity, transform;
|
||||
}
|
||||
|
||||
.nav-label-text {
|
||||
position: relative;
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
overflow: visible;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.nav-badge {
|
||||
flex: 0 0 auto;
|
||||
min-width: 34px;
|
||||
@@ -251,13 +264,24 @@
|
||||
}
|
||||
|
||||
.nav-unread-dot {
|
||||
flex: 0 0 auto;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
border: 2px solid #fff;
|
||||
border-radius: 999px;
|
||||
background: #ef4444;
|
||||
box-shadow: 0 6px 14px rgba(239, 68, 68, 0.26);
|
||||
box-shadow:
|
||||
0 0 0 3px rgba(239, 68, 68, 0.12),
|
||||
0 6px 14px rgba(239, 68, 68, 0.32);
|
||||
}
|
||||
|
||||
.nav-unread-dot-label {
|
||||
position: absolute;
|
||||
top: -8px;
|
||||
right: -10px;
|
||||
}
|
||||
|
||||
.nav-unread-dot-collapsed {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.rail-user {
|
||||
@@ -469,8 +493,13 @@
|
||||
transition-delay: 0ms;
|
||||
}
|
||||
|
||||
.rail-collapsed .nav-unread-dot {
|
||||
.rail-collapsed .nav-unread-dot-label {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.rail-collapsed .nav-unread-dot-collapsed {
|
||||
position: absolute;
|
||||
display: block;
|
||||
top: 10px;
|
||||
right: 11px;
|
||||
width: 9px;
|
||||
|
||||
Reference in New Issue
Block a user