refactor: enforce 800 line source limits
This commit is contained in:
@@ -0,0 +1,619 @@
|
||||
:global(.expense-profile-dialog-overlay) {
|
||||
background:
|
||||
linear-gradient(180deg, rgba(15, 23, 42, 0.34), rgba(15, 23, 42, 0.4)),
|
||||
rgba(15, 23, 42, 0.36);
|
||||
}
|
||||
|
||||
:global(.expense-profile-dialog.el-dialog) {
|
||||
max-height: calc(100vh - 56px);
|
||||
max-height: calc(100dvh - 56px);
|
||||
overflow: hidden;
|
||||
border: 1px solid rgba(148, 163, 184, 0.34);
|
||||
border-radius: 4px;
|
||||
background: #ffffff;
|
||||
box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
|
||||
}
|
||||
|
||||
:global(.expense-profile-dialog .el-dialog__header),
|
||||
:global(.expense-profile-dialog .expense-profile-dialog-body),
|
||||
:global(.expense-profile-dialog .el-dialog__footer) {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
:global(.expense-profile-dialog-zoom-enter-active),
|
||||
:global(.expense-profile-dialog-zoom-leave-active) {
|
||||
transition: opacity 180ms cubic-bezier(0.2, 0, 0, 1);
|
||||
}
|
||||
|
||||
:global(.expense-profile-dialog-zoom-enter-active .expense-profile-dialog),
|
||||
:global(.expense-profile-dialog-zoom-leave-active .expense-profile-dialog) {
|
||||
transform-origin: center center;
|
||||
will-change: transform, opacity;
|
||||
}
|
||||
|
||||
:global(.expense-profile-dialog-zoom-enter-active .expense-profile-dialog) {
|
||||
animation: expenseProfileDialogIn 240ms cubic-bezier(0.2, 0, 0, 1) both;
|
||||
}
|
||||
|
||||
:global(.expense-profile-dialog-zoom-leave-active .expense-profile-dialog) {
|
||||
animation: expenseProfileDialogOut 200ms cubic-bezier(0.22, 1, 0.36, 1) both;
|
||||
}
|
||||
|
||||
:global(.expense-profile-dialog-zoom-enter-from),
|
||||
:global(.expense-profile-dialog-zoom-leave-to) {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.profile-dialog-header,
|
||||
.profile-dialog-footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
padding: 16px 18px;
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.profile-dialog-header {
|
||||
border-bottom: 1px solid #e2e8f0;
|
||||
}
|
||||
|
||||
.profile-dialog-footer {
|
||||
justify-content: flex-start;
|
||||
border-top: 1px solid #e2e8f0;
|
||||
}
|
||||
|
||||
.profile-dialog-title-block {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.profile-dialog-eyebrow,
|
||||
.profile-section-title small {
|
||||
color: #64748b;
|
||||
font-size: 10px;
|
||||
font-weight: 850;
|
||||
letter-spacing: 0;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.profile-dialog-header h2 {
|
||||
margin: 3px 0 4px;
|
||||
color: #0f172a;
|
||||
font-size: 19px;
|
||||
line-height: 1.25;
|
||||
font-weight: 850;
|
||||
}
|
||||
|
||||
.profile-dialog-header p,
|
||||
.profile-dialog-footer span {
|
||||
margin: 0;
|
||||
color: #64748b;
|
||||
font-size: 12px;
|
||||
line-height: 1.5;
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
.profile-dialog-close {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
min-height: 32px;
|
||||
padding: 0;
|
||||
border-radius: 4px;
|
||||
color: #334155;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.profile-dialog-close:hover {
|
||||
background: #eef4fb;
|
||||
color: var(--theme-primary-active);
|
||||
}
|
||||
|
||||
.profile-dialog-content {
|
||||
max-height: min(580px, calc(100vh - 176px));
|
||||
max-height: min(580px, calc(100dvh - 176px));
|
||||
min-height: 0;
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
padding: 14px;
|
||||
overflow: auto;
|
||||
background: #f8fafc;
|
||||
}
|
||||
|
||||
.profile-dialog-alert {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 9px 11px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.28);
|
||||
border-radius: 4px;
|
||||
background: #ffffff;
|
||||
color: #475569;
|
||||
font-size: 12px;
|
||||
font-weight: 750;
|
||||
}
|
||||
|
||||
.profile-dialog-alert.is-error {
|
||||
border-color: rgba(220, 38, 38, 0.24);
|
||||
background: #fff7f7;
|
||||
color: #b91c1c;
|
||||
}
|
||||
|
||||
.profile-dialog-alert.is-empty {
|
||||
border-color: rgba(245, 158, 11, 0.28);
|
||||
background: #fffaf0;
|
||||
color: #92400e;
|
||||
}
|
||||
|
||||
.profile-summary-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.profile-summary-item,
|
||||
.profile-panel {
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 4px;
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.profile-summary-item {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
padding: 10px 12px;
|
||||
}
|
||||
|
||||
.profile-summary-item span,
|
||||
.profile-operation-copy span,
|
||||
.profile-operation-row time {
|
||||
color: #64748b;
|
||||
font-size: 11.5px;
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
.profile-summary-item strong {
|
||||
color: #0f172a;
|
||||
font-size: 18px;
|
||||
line-height: 1.15;
|
||||
font-weight: 850;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.profile-summary-item small {
|
||||
margin-left: 2px;
|
||||
color: #64748b;
|
||||
font-size: 11px;
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
.profile-summary-item em {
|
||||
overflow: hidden;
|
||||
color: #94a3b8;
|
||||
font-size: 11px;
|
||||
font-style: normal;
|
||||
font-weight: 650;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.profile-analysis-grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.profile-panel {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.profile-tags-panel {
|
||||
grid-template-rows: auto minmax(0, 1fr);
|
||||
align-content: stretch;
|
||||
min-height: 312px;
|
||||
}
|
||||
|
||||
.profile-radar-panel {
|
||||
grid-template-rows: auto minmax(0, 1fr) auto;
|
||||
align-content: stretch;
|
||||
min-height: 312px;
|
||||
}
|
||||
|
||||
.profile-section-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.profile-section-title > div {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.profile-section-title span {
|
||||
color: #0f172a;
|
||||
font-size: 14px;
|
||||
font-weight: 850;
|
||||
}
|
||||
|
||||
.profile-radar-title { align-items: flex-start; }
|
||||
|
||||
.profile-radar-view-select {
|
||||
width: 118px;
|
||||
flex: 0 0 118px;
|
||||
}
|
||||
.profile-radar-view-select :deep(.el-select__wrapper) {
|
||||
min-height: 28px;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 0 0 1px #cbd5e1 inset;
|
||||
color: #334155;
|
||||
font-size: 12px;
|
||||
font-weight: 750;
|
||||
}
|
||||
|
||||
.profile-operation-list {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.profile-panel-empty {
|
||||
margin: 0;
|
||||
padding: 18px 12px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
align-self: stretch;
|
||||
justify-self: stretch;
|
||||
box-sizing: border-box;
|
||||
min-height: 100%;
|
||||
border: 1px dashed #cbd5e1;
|
||||
border-radius: 4px;
|
||||
background: #f8fafc;
|
||||
color: #64748b;
|
||||
font-size: 12px;
|
||||
line-height: 1.5;
|
||||
font-weight: 700;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.profile-tags-panel > .profile-panel-empty {
|
||||
min-height: 244px;
|
||||
}
|
||||
|
||||
.profile-radar-empty {
|
||||
min-height: 268px;
|
||||
}
|
||||
|
||||
.profile-operation-copy strong {
|
||||
overflow: hidden;
|
||||
color: #0f172a;
|
||||
font-size: 13px;
|
||||
font-weight: 850;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.profile-operation-status {
|
||||
border-radius: 4px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.profile-radar-layout {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
align-items: center;
|
||||
justify-items: stretch;
|
||||
min-height: 300px;
|
||||
animation: profileRadarEnter 360ms cubic-bezier(0.2, 0, 0, 1) both;
|
||||
}
|
||||
|
||||
.profile-radar-chart {
|
||||
width: 100%;
|
||||
height: 300px;
|
||||
}
|
||||
|
||||
.profile-behavior-tags {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
padding-top: 10px;
|
||||
min-height: 59px;
|
||||
border-top: 1px solid #e8eef5;
|
||||
}
|
||||
|
||||
.profile-behavior-tags.is-empty { visibility: hidden; }
|
||||
|
||||
.profile-behavior-tags-title {
|
||||
color: #0f172a;
|
||||
font-size: 12px;
|
||||
font-weight: 850;
|
||||
}
|
||||
|
||||
.profile-behavior-tag-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.profile-behavior-tag {
|
||||
--behavior-tag-rgb: 58, 124, 165;
|
||||
--behavior-tag-text: #235d7e;
|
||||
max-width: 132px;
|
||||
overflow: hidden;
|
||||
padding: 4px 9px;
|
||||
border: 1px solid rgba(var(--behavior-tag-rgb), 0.24);
|
||||
border-radius: 999px;
|
||||
background: rgba(var(--behavior-tag-rgb), 0.08);
|
||||
color: var(--behavior-tag-text);
|
||||
font-size: 11.5px;
|
||||
line-height: 1.25;
|
||||
font-weight: 800;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
animation: profileBehaviorTagIn 260ms cubic-bezier(0.2, 0, 0, 1) both;
|
||||
}
|
||||
|
||||
.profile-behavior-tag--risk {
|
||||
--behavior-tag-rgb: 245, 158, 11;
|
||||
--behavior-tag-text: #92400e;
|
||||
}
|
||||
|
||||
.profile-behavior-tag--positive {
|
||||
--behavior-tag-rgb: 16, 185, 129;
|
||||
--behavior-tag-text: #047857;
|
||||
}
|
||||
|
||||
.profile-behavior-tag--accent-0 {
|
||||
--behavior-tag-rgb: 58, 124, 165;
|
||||
--behavior-tag-text: #235d7e;
|
||||
}
|
||||
|
||||
.profile-behavior-tag--accent-1 {
|
||||
--behavior-tag-rgb: 15, 159, 143;
|
||||
--behavior-tag-text: #0f766e;
|
||||
}
|
||||
|
||||
.profile-behavior-tag--accent-2 {
|
||||
--behavior-tag-rgb: 245, 158, 11;
|
||||
--behavior-tag-text: #92400e;
|
||||
}
|
||||
|
||||
.profile-behavior-tag--accent-3 {
|
||||
--behavior-tag-rgb: 124, 58, 237;
|
||||
--behavior-tag-text: #5b21b6;
|
||||
}
|
||||
|
||||
.profile-behavior-tag--accent-4 {
|
||||
--behavior-tag-rgb: 220, 38, 38;
|
||||
--behavior-tag-text: #991b1b;
|
||||
}
|
||||
|
||||
.profile-behavior-tag--accent-5 {
|
||||
--behavior-tag-rgb: 37, 99, 235;
|
||||
--behavior-tag-text: #1d4ed8;
|
||||
}
|
||||
|
||||
.profile-behavior-tag--accent-6 {
|
||||
--behavior-tag-rgb: 22, 163, 74;
|
||||
--behavior-tag-text: #15803d;
|
||||
}
|
||||
|
||||
.profile-behavior-tag--accent-7 {
|
||||
--behavior-tag-rgb: 219, 39, 119;
|
||||
--behavior-tag-text: #be185d;
|
||||
}
|
||||
|
||||
.profile-operation-row {
|
||||
display: grid;
|
||||
grid-template-columns: 88px minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 9px 0;
|
||||
border-top: 1px solid #e8eef5;
|
||||
}
|
||||
|
||||
.profile-operation-row:first-child {
|
||||
border-top: 0;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.profile-operation-copy {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
gap: 3px;
|
||||
}
|
||||
|
||||
.profile-operation-status {
|
||||
justify-self: end;
|
||||
}
|
||||
|
||||
@media (min-width: 861px) and (max-width: 1440px),
|
||||
(min-width: 861px) and (max-height: 820px) {
|
||||
:global(.expense-profile-dialog.el-dialog) {
|
||||
width: min(900px, calc(100vw - 96px)) !important;
|
||||
max-height: calc(100vh - 64px);
|
||||
max-height: calc(100dvh - 64px);
|
||||
}
|
||||
|
||||
.profile-dialog-header,
|
||||
.profile-dialog-footer {
|
||||
gap: 12px;
|
||||
padding: 12px 16px;
|
||||
}
|
||||
|
||||
.profile-dialog-header h2 {
|
||||
margin: 2px 0 3px;
|
||||
font-size: 17px;
|
||||
}
|
||||
|
||||
.profile-dialog-header p,
|
||||
.profile-dialog-footer span {
|
||||
font-size: 11.5px;
|
||||
}
|
||||
|
||||
.profile-dialog-content {
|
||||
max-height: min(520px, calc(100vh - 152px));
|
||||
max-height: min(520px, calc(100dvh - 152px));
|
||||
gap: 10px;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.profile-summary-grid,
|
||||
.profile-analysis-grid {
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.profile-summary-item {
|
||||
gap: 3px;
|
||||
padding: 8px 10px;
|
||||
}
|
||||
|
||||
.profile-summary-item strong {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.profile-panel {
|
||||
gap: 8px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.profile-analysis-grid {
|
||||
grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
|
||||
}
|
||||
|
||||
.profile-tags-panel,
|
||||
.profile-radar-panel {
|
||||
min-height: 272px;
|
||||
}
|
||||
|
||||
.profile-tags-panel > .profile-panel-empty {
|
||||
min-height: 210px;
|
||||
}
|
||||
|
||||
.profile-radar-empty {
|
||||
min-height: 220px;
|
||||
}
|
||||
|
||||
.profile-radar-layout {
|
||||
min-height: 248px;
|
||||
}
|
||||
|
||||
.profile-radar-chart {
|
||||
height: 248px;
|
||||
}
|
||||
|
||||
.profile-behavior-tags {
|
||||
gap: 6px;
|
||||
min-height: 50px;
|
||||
padding-top: 8px;
|
||||
}
|
||||
|
||||
.profile-operation-list {
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.profile-operation-row {
|
||||
gap: 8px;
|
||||
padding: 7px 0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes expenseProfileDialogIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: scale3d(0.94, 0.94, 1);
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: scale3d(1, 1, 1);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes profileRadarEnter {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translateY(8px) scale(0.985);
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: translateY(0) scale(1);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes profileBehaviorTagIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translateY(4px);
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes expenseProfileDialogOut {
|
||||
0% {
|
||||
opacity: 1;
|
||||
transform: scale3d(1, 1, 1);
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 0;
|
||||
transform: scale3d(0.96, 0.96, 1);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 860px) {
|
||||
:global(.expense-profile-dialog.el-dialog) {
|
||||
width: calc(100vw - 24px) !important;
|
||||
}
|
||||
|
||||
.profile-summary-grid,
|
||||
.profile-analysis-grid,
|
||||
.profile-radar-layout {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.profile-dialog-content {
|
||||
max-height: calc(100vh - 170px);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 560px) {
|
||||
.profile-dialog-header,
|
||||
.profile-dialog-footer {
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.profile-dialog-footer {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.profile-operation-row {
|
||||
grid-template-columns: 1fr;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.profile-operation-status {
|
||||
justify-self: start;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
:global(.expense-profile-dialog-zoom-enter-active .expense-profile-dialog),
|
||||
:global(.expense-profile-dialog-zoom-leave-active .expense-profile-dialog),
|
||||
.profile-radar-layout,
|
||||
.profile-behavior-tag {
|
||||
animation-duration: 1ms !important;
|
||||
}
|
||||
}
|
||||
@@ -995,6 +995,148 @@
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.workbench-ai-ocr-detail-panel {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
margin: -8px 0 22px;
|
||||
border: 1px solid rgba(191, 219, 254, 0.52);
|
||||
border-radius: 14px;
|
||||
background: rgba(248, 250, 252, 0.72);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.workbench-ai-ocr-detail-toggle {
|
||||
width: 100%;
|
||||
min-height: 42px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 14px;
|
||||
padding: 10px 12px 10px 14px;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: #1e3a8a;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.workbench-ai-ocr-detail-toggle:hover {
|
||||
background: rgba(239, 246, 255, 0.78);
|
||||
}
|
||||
|
||||
.workbench-ai-ocr-detail-toggle-left {
|
||||
min-width: 0;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.workbench-ai-ocr-detail-toggle strong {
|
||||
color: #1e3a8a;
|
||||
font-size: 13px;
|
||||
font-weight: 860;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.workbench-ai-ocr-detail-toggle small {
|
||||
color: #64748b;
|
||||
font-size: 12px;
|
||||
font-weight: 720;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.workbench-ai-ocr-detail-toggle > i {
|
||||
color: #64748b;
|
||||
font-size: 18px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.workbench-ai-ocr-detail-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: #38bdf8;
|
||||
box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.13);
|
||||
}
|
||||
|
||||
.workbench-ai-ocr-detail-body {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
padding: 0 14px 14px;
|
||||
}
|
||||
|
||||
.workbench-ai-ocr-document {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
padding: 12px;
|
||||
border: 1px solid rgba(226, 232, 240, 0.84);
|
||||
border-radius: 12px;
|
||||
background: rgba(255, 255, 255, 0.78);
|
||||
}
|
||||
|
||||
.workbench-ai-ocr-document__head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.workbench-ai-ocr-document__head strong {
|
||||
min-width: 0;
|
||||
color: #0f172a;
|
||||
font-size: 13px;
|
||||
font-weight: 850;
|
||||
line-height: 1.45;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.workbench-ai-ocr-document__head span {
|
||||
flex: 0 0 auto;
|
||||
color: #64748b;
|
||||
font-size: 12px;
|
||||
font-weight: 720;
|
||||
}
|
||||
|
||||
.workbench-ai-ocr-document__summary {
|
||||
margin: 0;
|
||||
color: #64748b;
|
||||
font-size: 13px;
|
||||
font-weight: 560;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.workbench-ai-ocr-document__fields {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 8px 14px;
|
||||
}
|
||||
|
||||
.workbench-ai-ocr-document__field {
|
||||
display: grid;
|
||||
grid-template-columns: 84px minmax(0, 1fr);
|
||||
gap: 10px;
|
||||
align-items: start;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.workbench-ai-ocr-document__field span {
|
||||
color: #94a3b8;
|
||||
font-size: 12px;
|
||||
font-weight: 720;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.workbench-ai-ocr-document__field strong {
|
||||
min-width: 0;
|
||||
color: #334155;
|
||||
font-size: 13px;
|
||||
font-weight: 760;
|
||||
line-height: 1.45;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.workbench-ai-pending-line {
|
||||
color: #64748b;
|
||||
font-size: 15px;
|
||||
@@ -1476,6 +1618,58 @@
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.workbench-ai-answer-markdown :deep(.ai-attachment-association-card) {
|
||||
background-image:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.94)),
|
||||
url("../../ai-document-card-bg.png");
|
||||
}
|
||||
|
||||
.workbench-ai-answer-markdown :deep(.ai-attachment-association-card .ai-document-card__head) {
|
||||
background: linear-gradient(90deg, rgba(219, 234, 254, 0.92), rgba(240, 253, 250, 0.82));
|
||||
}
|
||||
|
||||
.workbench-ai-answer-markdown :deep(.ai-ocr-recognition-card) {
|
||||
box-shadow:
|
||||
inset 0 0 0 1px rgba(147, 197, 253, 0.42),
|
||||
0 1px 2px rgba(15, 23, 42, 0.03),
|
||||
0 12px 28px rgba(37, 99, 235, 0.045);
|
||||
}
|
||||
|
||||
.workbench-ai-answer-markdown :deep(.ai-ocr-recognition-card .ai-document-card__head) {
|
||||
background: linear-gradient(90deg, rgba(219, 234, 254, 0.92), rgba(239, 246, 255, 0.74));
|
||||
}
|
||||
|
||||
.workbench-ai-answer-markdown :deep(.ai-ocr-recognition-card .ai-document-card__reason) {
|
||||
color: #1d4ed8;
|
||||
}
|
||||
|
||||
.workbench-ai-answer-markdown :deep(.ai-ocr-recognition-card .ai-document-card__status) {
|
||||
color: #2563eb;
|
||||
}
|
||||
|
||||
.workbench-ai-answer-markdown :deep(.ai-attachment-association__details) {
|
||||
gap: 14px 26px;
|
||||
}
|
||||
|
||||
.workbench-ai-answer-markdown :deep(.ai-attachment-association__details .ai-document-card__field--wide) {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.workbench-ai-answer-markdown :deep(.ai-attachment-association__muted) {
|
||||
color: #64748b;
|
||||
font-weight: 680;
|
||||
}
|
||||
|
||||
.workbench-ai-answer-markdown :deep(.ai-attachment-association__note) {
|
||||
margin-top: 16px;
|
||||
padding-top: 14px;
|
||||
border-top: 1px solid rgba(203, 213, 225, 0.68);
|
||||
color: #64748b;
|
||||
font-size: 13px;
|
||||
font-weight: 650;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.workbench-ai-answer-markdown :deep(.ai-document-card__action) {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
|
||||
@@ -0,0 +1,218 @@
|
||||
/* 强力锁定表格中输入框的高度,解决 scoped 模式下有前缀的 Element Plus 子组件无法被 :deep 成功匹配的局限性 */
|
||||
.detail-expense-table .editor-control .el-input__wrapper,
|
||||
.detail-expense-table .editor-control .el-select__wrapper,
|
||||
.detail-expense-table .editor-select .el-select__wrapper,
|
||||
.detail-expense-table .editor-date-picker .el-input__wrapper {
|
||||
box-sizing: border-box !important;
|
||||
min-height: var(--expense-editor-control-height, 34px) !important;
|
||||
height: var(--expense-editor-control-height, 34px) !important;
|
||||
line-height: var(--expense-editor-control-line-height, 16px) !important;
|
||||
}
|
||||
|
||||
.detail-expense-table .editor-control:not(.risk-note-editor-input),
|
||||
.detail-expense-table .editor-date-picker.editor-control,
|
||||
.detail-expense-table .editor-select {
|
||||
min-height: var(--expense-editor-control-height, 34px) !important;
|
||||
height: var(--expense-editor-control-height, 34px) !important;
|
||||
}
|
||||
|
||||
.detail-expense-table .editor-date-picker.editor-control {
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
}
|
||||
|
||||
.detail-expense-table .editor-date-picker.editor-control .el-input__wrapper {
|
||||
gap: 4px !important;
|
||||
padding-right: 7px !important;
|
||||
padding-left: 7px !important;
|
||||
}
|
||||
|
||||
.detail-expense-table .editor-date-picker.editor-control .el-input__inner,
|
||||
.detail-expense-table .editor-input-control.editor-control .el-input__inner,
|
||||
.detail-expense-table .editor-select .el-select__selected-item,
|
||||
.detail-expense-table .editor-select .el-select__placeholder {
|
||||
height: var(--expense-editor-control-line-height, 16px) !important;
|
||||
line-height: var(--expense-editor-control-line-height, 16px) !important;
|
||||
font-size: 12px !important;
|
||||
}
|
||||
|
||||
.detail-expense-table .editor-date-picker.editor-control .el-input__prefix,
|
||||
.detail-expense-table .editor-date-picker.editor-control .el-input__suffix,
|
||||
.detail-expense-table .editor-date-picker.editor-control .el-input__prefix-inner,
|
||||
.detail-expense-table .editor-date-picker.editor-control .el-input__suffix-inner {
|
||||
display: inline-flex !important;
|
||||
align-items: center !important;
|
||||
}
|
||||
|
||||
.detail-expense-table .editor-date-picker.editor-control .el-input__prefix,
|
||||
.detail-expense-table .editor-date-picker.editor-control .el-input__suffix {
|
||||
min-height: var(--expense-editor-control-height, 34px) !important;
|
||||
height: var(--expense-editor-control-height, 34px) !important;
|
||||
}
|
||||
|
||||
.detail-expense-table .editor-date-picker.editor-control .el-input__prefix {
|
||||
flex: 0 0 14px !important;
|
||||
width: 14px !important;
|
||||
min-width: 14px !important;
|
||||
margin: 0 !important;
|
||||
color: #94a3b8 !important;
|
||||
font-size: 13px !important;
|
||||
}
|
||||
|
||||
.detail-expense-table .editor-date-picker.editor-control .el-input__suffix {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.detail-expense-table .editor-date-picker.editor-control .el-input__prefix-inner,
|
||||
.detail-expense-table .editor-date-picker.editor-control .el-input__suffix-inner {
|
||||
height: var(--expense-editor-control-line-height, 16px) !important;
|
||||
line-height: var(--expense-editor-control-line-height, 16px) !important;
|
||||
}
|
||||
|
||||
.detail-expense-table .editor-date-picker.editor-control .el-input__prefix-inner {
|
||||
width: 14px !important;
|
||||
font-size: 13px !important;
|
||||
}
|
||||
|
||||
.detail-expense-table .editor-amount-input.editor-control {
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
}
|
||||
|
||||
.detail-expense-table .editor-amount-input.editor-control .el-input__wrapper {
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
min-height: var(--expense-editor-control-height, 34px) !important;
|
||||
height: var(--expense-editor-control-height, 34px) !important;
|
||||
padding-top: 0 !important;
|
||||
padding-bottom: 0 !important;
|
||||
}
|
||||
|
||||
.detail-expense-table .editor-amount-input.editor-control .el-input__inner {
|
||||
height: var(--expense-editor-control-line-height, 16px) !important;
|
||||
line-height: var(--expense-editor-control-line-height, 16px) !important;
|
||||
}
|
||||
|
||||
.detail-expense-table .editor-amount-input.editor-control .el-input__prefix,
|
||||
.detail-expense-table .editor-amount-input.editor-control .el-input__prefix-inner {
|
||||
display: inline-flex !important;
|
||||
align-items: center !important;
|
||||
}
|
||||
|
||||
.detail-expense-table .editor-amount-input.editor-control .el-input__prefix {
|
||||
min-height: var(--expense-editor-control-height, 34px) !important;
|
||||
height: var(--expense-editor-control-height, 34px) !important;
|
||||
}
|
||||
|
||||
.detail-expense-table .editor-amount-input.editor-control .el-input__prefix-inner {
|
||||
height: var(--expense-editor-control-line-height, 16px) !important;
|
||||
line-height: var(--expense-editor-control-line-height, 16px) !important;
|
||||
}
|
||||
|
||||
.detail-editor-date-popper.el-popper {
|
||||
border: 1px solid rgba(148, 163, 184, .32) !important;
|
||||
border-radius: 4px !important;
|
||||
background: #ffffff !important;
|
||||
box-shadow: 0 18px 42px rgba(15, 23, 42, .14) !important;
|
||||
}
|
||||
|
||||
.detail-editor-date-popper .el-picker-panel {
|
||||
border: 0 !important;
|
||||
border-radius: 4px !important;
|
||||
background: #ffffff !important;
|
||||
color: #334155 !important;
|
||||
}
|
||||
|
||||
.detail-editor-date-popper .el-date-picker__header {
|
||||
height: 38px !important;
|
||||
margin: 0 !important;
|
||||
padding: 0 10px !important;
|
||||
border-bottom: 1px solid #e2e8f0 !important;
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
}
|
||||
|
||||
.detail-editor-date-popper .el-picker-panel__icon-btn {
|
||||
appearance: none !important;
|
||||
width: 24px !important;
|
||||
height: 24px !important;
|
||||
margin: 0 1px !important;
|
||||
padding: 0 !important;
|
||||
border: 0 !important;
|
||||
border-radius: 4px !important;
|
||||
background: transparent !important;
|
||||
color: #64748b !important;
|
||||
display: inline-flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: center !important;
|
||||
transition: background-color 160ms var(--ease), color 160ms var(--ease) !important;
|
||||
}
|
||||
|
||||
.detail-editor-date-popper .el-picker-panel__icon-btn:hover {
|
||||
background: var(--theme-primary-soft) !important;
|
||||
color: var(--theme-primary-active) !important;
|
||||
}
|
||||
|
||||
.detail-editor-date-popper .el-date-picker__header-label {
|
||||
color: #0f172a !important;
|
||||
font-size: 13px !important;
|
||||
font-weight: 800 !important;
|
||||
}
|
||||
|
||||
.detail-editor-date-popper .el-picker-panel__content {
|
||||
margin: 8px 10px 10px !important;
|
||||
}
|
||||
|
||||
.detail-editor-date-popper .el-date-table th {
|
||||
border-bottom: 1px solid #edf2f7 !important;
|
||||
color: #64748b !important;
|
||||
font-size: 11px !important;
|
||||
font-weight: 800 !important;
|
||||
}
|
||||
|
||||
.detail-editor-date-popper .el-date-table td {
|
||||
width: 32px !important;
|
||||
height: 30px !important;
|
||||
padding: 2px !important;
|
||||
}
|
||||
|
||||
.detail-editor-date-popper .el-date-table td .el-date-table-cell {
|
||||
height: 28px !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.detail-editor-date-popper .el-date-table td .el-date-table-cell__text {
|
||||
width: 26px !important;
|
||||
height: 26px !important;
|
||||
border-radius: 4px !important;
|
||||
color: #334155 !important;
|
||||
font-size: 12px !important;
|
||||
line-height: 26px !important;
|
||||
}
|
||||
|
||||
.detail-editor-date-popper .el-date-table td.available:hover .el-date-table-cell__text {
|
||||
background: var(--theme-primary-soft) !important;
|
||||
color: var(--theme-primary-active) !important;
|
||||
}
|
||||
|
||||
.detail-editor-date-popper .el-date-table td.today .el-date-table-cell__text {
|
||||
color: var(--theme-primary-active) !important;
|
||||
font-weight: 850 !important;
|
||||
}
|
||||
|
||||
.detail-editor-date-popper .el-date-table td.current .el-date-table-cell__text,
|
||||
.detail-editor-date-popper .el-date-table td.selected .el-date-table-cell__text {
|
||||
background: var(--theme-primary) !important;
|
||||
color: #ffffff !important;
|
||||
font-weight: 850 !important;
|
||||
}
|
||||
|
||||
.detail-editor-date-popper .el-date-table td.prev-month .el-date-table-cell__text,
|
||||
.detail-editor-date-popper .el-date-table td.next-month .el-date-table-cell__text {
|
||||
color: #cbd5e1 !important;
|
||||
}
|
||||
|
||||
.detail-editor-date-popper .el-date-table td.disabled .el-date-table-cell__text {
|
||||
background: #f8fafc !important;
|
||||
color: #cbd5e1 !important;
|
||||
}
|
||||
Reference in New Issue
Block a user