fix: 优化顶部导航栏布局与工作台摘要展示并清理旧票据数据
This commit is contained in:
@@ -408,115 +408,168 @@
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
.notification-wrap.is-open .notification-btn {
|
||||
border: 1px solid var(--theme-primary-light-5);
|
||||
background: var(--theme-primary-light-9);
|
||||
color: var(--theme-primary-active);
|
||||
}
|
||||
|
||||
.notification-btn {
|
||||
position: relative;
|
||||
overflow: visible;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 4px;
|
||||
transition:
|
||||
border-color 180ms var(--ease),
|
||||
background 180ms var(--ease),
|
||||
color 180ms var(--ease);
|
||||
}
|
||||
|
||||
.notification-badge {
|
||||
position: absolute;
|
||||
top: 1px;
|
||||
right: 0;
|
||||
min-width: 15px;
|
||||
height: 15px;
|
||||
top: 2px;
|
||||
right: 2px;
|
||||
min-width: 16px;
|
||||
height: 16px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0 4px;
|
||||
border: 2px solid #fff;
|
||||
border-radius: 999px;
|
||||
background: #ef4444;
|
||||
border-radius: 4px;
|
||||
background: #dc2626;
|
||||
color: #fff;
|
||||
font-size: 9px;
|
||||
font-weight: 850;
|
||||
font-size: 10px;
|
||||
font-weight: 800;
|
||||
line-height: 1;
|
||||
box-shadow: 0 5px 10px rgba(239, 68, 68, .22);
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.notification-panel-enter-active,
|
||||
.notification-panel-leave-active {
|
||||
transition:
|
||||
opacity 220ms var(--ease),
|
||||
transform 220ms var(--ease);
|
||||
}
|
||||
|
||||
.notification-panel-enter-from,
|
||||
.notification-panel-leave-to {
|
||||
opacity: 0;
|
||||
transform: translateY(-6px);
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.notification-panel-enter-active,
|
||||
.notification-panel-leave-active {
|
||||
transition-duration: 1ms;
|
||||
}
|
||||
|
||||
.notification-panel-enter-from,
|
||||
.notification-panel-leave-to {
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
.notification-popover {
|
||||
position: absolute;
|
||||
top: calc(100% + 10px);
|
||||
right: -8px;
|
||||
top: calc(100% + 8px);
|
||||
right: 0;
|
||||
z-index: 60;
|
||||
width: min(392px, calc(100vw - 32px));
|
||||
width: min(380px, calc(100vw - 32px));
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
padding: 14px;
|
||||
border: 1px solid #e5edf5;
|
||||
grid-template-rows: auto auto minmax(0, 1fr);
|
||||
gap: 0;
|
||||
overflow: hidden;
|
||||
border: 1px solid #d7e0ea;
|
||||
border-radius: 4px;
|
||||
background: #fff;
|
||||
box-shadow:
|
||||
0 18px 46px rgba(15, 23, 42, 0.14),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.92);
|
||||
box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
|
||||
}
|
||||
|
||||
.notification-popover::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: -6px;
|
||||
right: 18px;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-top: 1px solid #e5edf5;
|
||||
border-left: 1px solid #e5edf5;
|
||||
background: #fff;
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
|
||||
.notification-head,
|
||||
.notification-tabs {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
display: block;
|
||||
height: 3px;
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
var(--theme-primary-active) 0%,
|
||||
var(--theme-primary-light-3, #7eb3d4) 100%
|
||||
);
|
||||
}
|
||||
|
||||
.notification-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
padding-bottom: 10px;
|
||||
gap: 12px;
|
||||
padding: 12px 14px 10px;
|
||||
border-bottom: 1px solid #edf2f7;
|
||||
background: #fafbfd;
|
||||
}
|
||||
|
||||
.notification-head-brand {
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.notification-head-icon {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
flex: 0 0 auto;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border: 1px solid var(--theme-primary-light-6);
|
||||
border-radius: 4px;
|
||||
background: #fff;
|
||||
color: var(--theme-primary-active);
|
||||
font-size: 17px;
|
||||
}
|
||||
|
||||
.notification-head-copy {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
gap: 3px;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.notification-head strong {
|
||||
color: #0f172a;
|
||||
font-size: 15px;
|
||||
font-weight: 850;
|
||||
font-size: 14px;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
|
||||
.notification-head small {
|
||||
color: #64748b;
|
||||
font-size: 12px;
|
||||
font-weight: 650;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.notification-head-actions {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
gap: 4px;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.notification-clear-btn {
|
||||
height: 26px;
|
||||
padding: 0 9px;
|
||||
border: 1px solid #dbe4ee;
|
||||
height: 28px;
|
||||
padding: 0 10px;
|
||||
border: 0;
|
||||
border-radius: 4px;
|
||||
background: #fff;
|
||||
color: #475569;
|
||||
background: transparent;
|
||||
color: var(--theme-primary-active);
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
font-weight: 750;
|
||||
white-space: nowrap;
|
||||
transition:
|
||||
background 160ms var(--ease),
|
||||
color 160ms var(--ease);
|
||||
}
|
||||
|
||||
.notification-clear-btn:hover:not(:disabled) {
|
||||
border-color: var(--theme-primary-light-5);
|
||||
background: var(--theme-primary-light-9);
|
||||
color: var(--theme-primary-active);
|
||||
}
|
||||
|
||||
.notification-clear-btn:disabled {
|
||||
@@ -525,111 +578,92 @@
|
||||
}
|
||||
|
||||
.notification-close-btn {
|
||||
position: relative;
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
border: 1px solid transparent;
|
||||
border: 0;
|
||||
border-radius: 4px;
|
||||
background: transparent;
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
.notification-close-btn span,
|
||||
.notification-close-btn span::before,
|
||||
.notification-close-btn span::after {
|
||||
position: absolute;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.notification-close-btn span {
|
||||
inset: 0;
|
||||
}
|
||||
|
||||
.notification-close-btn span::before,
|
||||
.notification-close-btn span::after {
|
||||
content: "";
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: 12px;
|
||||
height: 2px;
|
||||
border-radius: 999px;
|
||||
background: currentColor;
|
||||
transform-origin: center;
|
||||
}
|
||||
|
||||
.notification-close-btn span::before {
|
||||
transform: translate(-50%, -50%) rotate(45deg);
|
||||
}
|
||||
|
||||
.notification-close-btn span::after {
|
||||
transform: translate(-50%, -50%) rotate(-45deg);
|
||||
font-size: 18px;
|
||||
transition:
|
||||
background 160ms var(--ease),
|
||||
color 160ms var(--ease);
|
||||
}
|
||||
|
||||
.notification-close-btn:hover {
|
||||
border-color: #e2e8f0;
|
||||
background: #f8fafc;
|
||||
background: #eef2f7;
|
||||
color: #0f172a;
|
||||
}
|
||||
|
||||
.notification-tabs {
|
||||
gap: 6px;
|
||||
padding: 3px;
|
||||
border: 1px solid #edf2f7;
|
||||
border-radius: 4px;
|
||||
background: #f8fafc;
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
gap: 0;
|
||||
padding: 0 14px;
|
||||
border-bottom: 1px solid #edf2f7;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.notification-tabs button {
|
||||
position: relative;
|
||||
flex: 1 1 0;
|
||||
height: 30px;
|
||||
height: 38px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
border-radius: 3px;
|
||||
border: 0;
|
||||
border-bottom: 2px solid transparent;
|
||||
margin-bottom: -1px;
|
||||
background: transparent;
|
||||
color: #64748b;
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
font-size: 13px;
|
||||
font-weight: 750;
|
||||
transition:
|
||||
color 180ms var(--ease),
|
||||
border-color 180ms var(--ease);
|
||||
}
|
||||
|
||||
.notification-tabs button em {
|
||||
min-width: 18px;
|
||||
height: 18px;
|
||||
min-width: 20px;
|
||||
height: 20px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0 6px;
|
||||
border-radius: 999px;
|
||||
background: #e2e8f0;
|
||||
border-radius: 4px;
|
||||
background: #f1f5f9;
|
||||
color: #475569;
|
||||
font-style: normal;
|
||||
font-size: 11px;
|
||||
font-weight: 800;
|
||||
line-height: 1;
|
||||
transition:
|
||||
background 180ms var(--ease),
|
||||
color 180ms var(--ease);
|
||||
}
|
||||
|
||||
.notification-tabs button.active {
|
||||
background: #fff;
|
||||
color: var(--theme-primary-active);
|
||||
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
|
||||
border-bottom-color: var(--theme-primary-active);
|
||||
}
|
||||
|
||||
.notification-tabs button.active em {
|
||||
background: var(--theme-primary-light-8);
|
||||
background: var(--theme-primary-light-9);
|
||||
color: var(--theme-primary-active);
|
||||
}
|
||||
|
||||
.notification-list {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
max-height: 244px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-height: 280px;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
padding-right: 2px;
|
||||
padding: 6px 0;
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: #cbd5e1 transparent;
|
||||
scrollbar-color: #cbd5e1 #f8fafc;
|
||||
}
|
||||
|
||||
.notification-list::-webkit-scrollbar {
|
||||
@@ -637,45 +671,56 @@
|
||||
}
|
||||
|
||||
.notification-list::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
background: #f8fafc;
|
||||
}
|
||||
|
||||
.notification-list::-webkit-scrollbar-thumb {
|
||||
border-radius: 999px;
|
||||
border-radius: 4px;
|
||||
background: #cbd5e1;
|
||||
}
|
||||
|
||||
.notification-row {
|
||||
display: grid;
|
||||
grid-template-columns: 34px minmax(0, 1fr) 16px;
|
||||
align-items: start;
|
||||
grid-template-columns: 36px minmax(0, 1fr) 14px;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
min-height: 72px;
|
||||
padding: 10px;
|
||||
border: 1px solid #edf2f7;
|
||||
border-radius: 4px;
|
||||
background: #fff;
|
||||
min-height: 0;
|
||||
padding: 10px 14px;
|
||||
border: 0;
|
||||
border-left: 3px solid transparent;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
text-align: left;
|
||||
transition:
|
||||
border-color 160ms var(--ease),
|
||||
background 160ms var(--ease),
|
||||
box-shadow 160ms var(--ease);
|
||||
background 180ms var(--ease),
|
||||
border-color 180ms var(--ease);
|
||||
}
|
||||
|
||||
.notification-row + .notification-row {
|
||||
border-top: 1px solid #f1f5f9;
|
||||
}
|
||||
|
||||
.notification-row.unread {
|
||||
border-left-color: var(--theme-primary-active);
|
||||
background: linear-gradient(90deg, var(--theme-primary-light-9) 0%, #fff 42%);
|
||||
}
|
||||
|
||||
.notification-row:hover {
|
||||
border-color: var(--theme-primary-light-5);
|
||||
background: #f8fbff;
|
||||
box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
|
||||
background: #f8fafc;
|
||||
}
|
||||
|
||||
.notification-row.unread:hover {
|
||||
background: linear-gradient(90deg, var(--theme-primary-light-8) 0%, #f8fafc 48%);
|
||||
}
|
||||
|
||||
.notification-type-icon {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border: 1px solid var(--theme-primary-light-6);
|
||||
border-radius: 4px;
|
||||
background: var(--theme-primary-light-9);
|
||||
background: #fff;
|
||||
color: var(--theme-primary-active);
|
||||
font-size: 18px;
|
||||
}
|
||||
@@ -707,7 +752,7 @@
|
||||
.notification-copy {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
gap: 5px;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.notification-copy strong,
|
||||
@@ -728,7 +773,7 @@
|
||||
min-width: 0;
|
||||
color: #0f172a;
|
||||
font-size: 13px;
|
||||
font-weight: 850;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.notification-title-line b {
|
||||
@@ -738,17 +783,19 @@
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0 6px;
|
||||
border-radius: 999px;
|
||||
background: #ef4444;
|
||||
padding: 0 5px;
|
||||
border-radius: 4px;
|
||||
background: #dc2626;
|
||||
color: #fff;
|
||||
font-size: 10px;
|
||||
font-weight: 800;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.notification-copy small {
|
||||
color: #475569;
|
||||
font-size: 12px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.notification-meta {
|
||||
@@ -764,25 +811,54 @@
|
||||
color: #94a3b8;
|
||||
font-size: 11px;
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.notification-row > .mdi {
|
||||
align-self: center;
|
||||
color: #94a3b8;
|
||||
font-size: 16px;
|
||||
.notification-row-arrow {
|
||||
color: #cbd5e1;
|
||||
font-size: 18px;
|
||||
transition: color 160ms var(--ease), transform 160ms var(--ease);
|
||||
}
|
||||
|
||||
.notification-row:hover .notification-row-arrow {
|
||||
color: var(--theme-primary-active);
|
||||
transform: translateX(2px);
|
||||
}
|
||||
|
||||
.notification-empty {
|
||||
min-height: 112px;
|
||||
min-height: 148px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
gap: 8px;
|
||||
color: #94a3b8;
|
||||
font-size: 13px;
|
||||
justify-items: center;
|
||||
gap: 6px;
|
||||
padding: 24px 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.notification-empty .mdi {
|
||||
font-size: 24px;
|
||||
.notification-empty-icon {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
margin-bottom: 4px;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 4px;
|
||||
background: #f8fafc;
|
||||
color: #94a3b8;
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
.notification-empty strong {
|
||||
color: #334155;
|
||||
font-size: 14px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.notification-empty > span:last-child {
|
||||
max-width: 220px;
|
||||
color: #94a3b8;
|
||||
font-size: 12px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.company-switcher {
|
||||
|
||||
Reference in New Issue
Block a user