Migrate registration workspace fusion mapping views

This commit is contained in:
Codex
2026-05-28 23:43:49 +08:00
parent 7a38272e8b
commit c4f0fd54d6
3 changed files with 802 additions and 65 deletions

View File

@@ -115,13 +115,24 @@ button {
}
.workspace.case-collapsed {
grid-template-columns: 0 minmax(0, 1fr);
grid-template-columns: 54px minmax(0, 1fr);
}
.workspace.case-collapsed .case-panel {
opacity: 0;
pointer-events: none;
transform: translateX(-18px);
opacity: 1;
pointer-events: auto;
transform: none;
}
.workspace.case-collapsed .case-panel > :not(.panel-head),
.workspace.case-collapsed .panel-head .panel-title-row > div,
.workspace.case-collapsed .panel-head #caseCount {
display: none;
}
.workspace.case-collapsed .case-panel .panel-head {
justify-content: center;
padding: 9px 7px;
}
.icon-btn {
@@ -174,6 +185,19 @@ button {
padding: 14px;
}
.panel-title-row {
min-width: 0;
display: flex;
align-items: center;
gap: 10px;
}
.panel-title-row .icon-btn {
width: 34px;
height: 32px;
border-radius: 11px;
}
.panel-head.compact {
min-height: 42px;
padding: 10px 12px;
@@ -338,6 +362,24 @@ button {
background: linear-gradient(180deg, rgba(20, 45, 88, 0.96), rgba(10, 18, 31, 0.96));
}
.series-card.skipped {
opacity: 0.54;
filter: grayscale(0.95);
background: rgba(8, 12, 18, 0.7);
}
.series-card.skipped.active {
opacity: 0.78;
border-color: rgba(148, 163, 184, 0.5);
background: linear-gradient(180deg, rgba(34, 41, 53, 0.86), rgba(12, 17, 24, 0.9));
}
.series-card.skipped .mini-tags i {
border-color: rgba(148, 163, 184, 0.48);
background: rgba(148, 163, 184, 0.12);
color: #cbd5e1;
}
.case-card strong,
.series-card strong {
display: block;
@@ -617,6 +659,7 @@ button {
.fusion-panel .viewer-head {
align-content: center;
flex-wrap: wrap;
overflow-x: auto;
}
.viewer-head h2 {
@@ -855,7 +898,29 @@ button {
background: #000;
}
.dicom-stage img {
.mapping-viewport {
position: absolute;
inset: 0 54px 0 0;
overflow: hidden;
touch-action: none;
cursor: grab;
}
.mapping-viewport.dragging {
cursor: grabbing;
}
.mapping-layer {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
transform-origin: center center;
}
.dicom-stage img,
.dicom-stage canvas {
position: absolute;
inset: 0;
width: 100%;
@@ -864,6 +929,91 @@ button {
image-rendering: auto;
}
.dicom-stage canvas {
z-index: 2;
pointer-events: none;
}
.mapping-slice-rail {
position: absolute;
top: 0;
right: 0;
bottom: 0;
z-index: 6;
width: 54px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 12px;
border-left: 1px solid rgba(148, 163, 184, 0.18);
background: #0f172a;
}
.mapping-slice-rail::before {
content: "";
position: absolute;
top: 26px;
bottom: 56px;
left: 50%;
width: 8px;
transform: translateX(-50%);
border-radius: 999px;
background: rgba(148, 163, 184, 0.18);
}
#mappingSliceSlider {
position: relative;
z-index: 1;
width: min(66vh, 520px);
height: 34px;
transform: rotate(-90deg);
appearance: none;
background: transparent;
}
#mappingSliceSlider::-webkit-slider-runnable-track {
height: 8px;
border-radius: 999px;
background: rgba(148, 163, 184, 0.2);
}
#mappingSliceSlider::-webkit-slider-thumb {
appearance: none;
width: 25px;
height: 25px;
margin-top: -8.5px;
border: 3px solid #93c5fd;
border-radius: 7px;
background: #60a5fa;
box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}
#mappingSliceSlider::-moz-range-track {
height: 8px;
border-radius: 999px;
background: rgba(148, 163, 184, 0.2);
}
#mappingSliceSlider::-moz-range-thumb {
width: 22px;
height: 22px;
border: 3px solid #93c5fd;
border-radius: 7px;
background: #60a5fa;
}
#mappingSliceLabel {
position: absolute;
right: 9px;
bottom: 14px;
color: #c8f7ff;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 11px;
font-weight: 900;
writing-mode: vertical-rl;
}
.crosshair {
position: absolute;
z-index: 3;
@@ -916,13 +1066,12 @@ button {
}
.annotation-tags {
min-height: 48px;
min-height: 36px;
display: flex;
gap: 8px;
align-items: center;
overflow-x: auto;
border-top: 1px solid var(--line);
padding: 8px 12px;
padding: 0;
}
.annotation-tags span {
@@ -936,6 +1085,78 @@ button {
padding: 5px 10px;
}
.mapping-summary {
min-height: 122px;
max-height: 170px;
display: flex;
flex-direction: column;
gap: 8px;
overflow: hidden;
border-top: 1px solid var(--line);
background: #070c14;
padding: 10px 12px;
}
.mapping-summary-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
color: #dbeafe;
font-size: 12px;
font-weight: 900;
}
.mapping-summary-head em {
flex: 0 0 auto;
color: #c8f7ff;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 11px;
font-style: normal;
}
.mapping-legend {
min-height: 0;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 6px;
overflow: auto;
}
.mapping-legend .legend-item {
min-width: 0;
display: grid;
grid-template-columns: 12px minmax(0, 1fr) auto;
align-items: center;
gap: 7px;
border: 1px solid rgba(148, 163, 184, 0.18);
border-radius: 8px;
background: rgba(255, 255, 255, 0.035);
color: #b6c8dd;
font-size: 11px;
font-weight: 800;
padding: 6px 8px;
}
.mapping-legend .legend-color {
width: 10px;
height: 10px;
border: 1px solid rgba(255, 255, 255, 0.35);
border-radius: 3px;
}
.mapping-legend .legend-name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.mapping-legend .legend-meta {
color: #9debf4;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 10px;
}
.slice-row span {
color: var(--muted);
font-size: 12px;