Refine DICOM UPP registration workstation layout

This commit is contained in:
Codex
2026-05-28 22:38:27 +08:00
parent 4ffdd28fbe
commit 7a38272e8b
3 changed files with 777 additions and 58 deletions

View File

@@ -111,6 +111,50 @@ button {
grid-template-columns: 338px minmax(0, 1fr);
gap: 12px;
padding: 12px;
transition: grid-template-columns 0.22s ease;
}
.workspace.case-collapsed {
grid-template-columns: 0 minmax(0, 1fr);
}
.workspace.case-collapsed .case-panel {
opacity: 0;
pointer-events: none;
transform: translateX(-18px);
}
.icon-btn {
width: 38px;
height: 34px;
display: grid;
grid-template-columns: 8px 1fr;
grid-template-rows: repeat(2, 1fr);
gap: 4px;
flex: 0 0 auto;
border: 1px solid rgba(148, 163, 184, 0.38);
border-radius: 10px;
background: linear-gradient(180deg, rgba(25, 38, 56, 0.95), rgba(9, 15, 23, 0.95));
padding: 7px;
}
.icon-btn span {
border: 2px solid #afbfd2;
border-radius: 3px;
}
.icon-btn span:first-child {
grid-row: 1 / 3;
}
.icon-btn span:nth-child(2),
.icon-btn span:nth-child(3) {
grid-column: 2;
}
.icon-btn.active {
border-color: rgba(25, 214, 195, 0.66);
background: rgba(20, 184, 166, 0.18);
}
.panel {
@@ -153,6 +197,8 @@ button {
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
transition: opacity 0.2s ease, transform 0.2s ease;
}
.search-input,
@@ -179,6 +225,11 @@ button {
padding: 10px;
}
.tool-pane .notes {
width: 100%;
margin: 10px 0 0;
}
.filter-row,
.part-filter,
.chip-rail,
@@ -189,6 +240,10 @@ button {
overflow-x: auto;
}
.tool-pane .chip-rail {
padding: 0 0 10px;
}
.filter,
.chip,
.tag,
@@ -376,6 +431,148 @@ button {
gap: 12px;
}
.registration-board {
min-height: 0;
display: grid;
grid-template-columns: 360px minmax(520px, 1.08fr) minmax(420px, 0.92fr);
gap: 12px;
}
.tool-dock {
min-width: 0;
min-height: 0;
display: grid;
grid-template-rows: 44px minmax(0, 1fr);
overflow: hidden;
}
.tool-tabs {
display: grid;
grid-template-columns: repeat(3, 1fr);
border-bottom: 1px solid var(--line);
background: rgba(6, 10, 15, 0.55);
}
.tool-tabs button {
border: 0;
border-right: 1px solid rgba(148, 163, 184, 0.2);
background: rgba(18, 24, 36, 0.72);
color: #c5d3e5;
font-weight: 900;
}
.tool-tabs button.active {
background: linear-gradient(180deg, rgba(75, 86, 111, 0.88), rgba(30, 39, 58, 0.9));
color: #ffffff;
box-shadow: inset 0 -2px 0 rgba(25, 214, 195, 0.75);
}
.tool-pane {
min-height: 0;
display: none;
overflow-y: auto;
padding: 10px;
}
.tool-pane.active {
display: flex;
flex-direction: column;
}
.patient-card {
flex: 0 0 auto;
margin-bottom: 10px;
border: 1px solid rgba(148, 163, 184, 0.16);
border-radius: 10px;
background: linear-gradient(180deg, rgba(28, 35, 49, 0.92), rgba(15, 21, 31, 0.92));
padding: 12px;
}
.patient-card strong {
display: block;
overflow: hidden;
color: #fff;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 13px;
text-overflow: ellipsis;
white-space: nowrap;
}
.patient-card dl {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 9px 14px;
margin: 12px 0 0;
}
.patient-card div {
min-width: 0;
}
.patient-card dt {
color: var(--muted);
font-size: 11px;
}
.patient-card dd {
margin: 3px 0 0;
overflow: hidden;
color: #edf5ff;
font-size: 12px;
font-weight: 800;
text-overflow: ellipsis;
white-space: nowrap;
}
.tool-section-title {
min-height: 34px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
flex: 0 0 auto;
margin: 8px -10px 8px;
border-top: 1px solid rgba(148, 163, 184, 0.15);
border-bottom: 1px solid rgba(148, 163, 184, 0.15);
background: rgba(24, 31, 45, 0.9);
color: #f1f7ff;
font-size: 13px;
font-weight: 900;
padding: 0 10px;
}
.tool-section-title button {
border: 0;
background: transparent;
color: #c4d7ee;
font-size: 12px;
font-weight: 900;
}
.tool-section-title em {
color: var(--muted);
font-size: 12px;
font-style: normal;
}
.matched-series {
flex: 0 0 auto;
}
.matched-series .series-card {
border-color: rgba(25, 214, 195, 0.75);
background: rgba(20, 184, 166, 0.12);
}
.compact-list {
min-height: 0;
padding: 0;
}
.tool-pane .compact-list {
flex: 1;
}
.series-panel,
.right-panel {
min-height: 0;
@@ -402,6 +599,10 @@ button {
overflow: hidden;
}
.dicom-panel {
grid-template-rows: auto minmax(0, 1fr) auto;
}
.viewer-head {
min-height: 58px;
display: flex;
@@ -410,7 +611,23 @@ button {
gap: 12px;
padding: 10px 12px;
border-bottom: 1px solid var(--line);
overflow-x: auto;
overflow: hidden;
}
.fusion-panel .viewer-head {
align-content: center;
flex-wrap: wrap;
}
.viewer-head h2 {
margin: 0;
font-size: 16px;
}
.viewer-head p {
margin: 3px 0 0;
color: var(--muted);
font-size: 11px;
}
.segmented {
@@ -506,15 +723,18 @@ button {
white-space: nowrap;
}
#saveState.ok {
#saveState.ok,
#autoState.ok {
color: #b8f7da;
}
#saveState.warn {
#saveState.warn,
#autoState.warn {
color: #ffe1a6;
}
#saveState.error {
#saveState.error,
#autoState.error {
color: #fecdd3;
}
@@ -628,6 +848,94 @@ button {
border-top: 1px solid var(--line);
}
.dicom-stage {
position: relative;
min-height: 0;
overflow: hidden;
background: #000;
}
.dicom-stage img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: contain;
image-rendering: auto;
}
.crosshair {
position: absolute;
z-index: 3;
pointer-events: none;
opacity: 0.82;
}
.crosshair.horizontal {
top: 50%;
left: 0;
right: 0;
height: 1px;
background: rgba(52, 211, 153, 0.72);
}
.crosshair.vertical {
top: 0;
bottom: 0;
left: 50%;
width: 1px;
background: rgba(248, 113, 113, 0.72);
}
.dicom-overlay {
position: absolute;
z-index: 4;
max-width: 48%;
color: rgba(255, 255, 255, 0.86);
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 12px;
line-height: 1.35;
text-shadow: 0 1px 2px #000;
white-space: pre-line;
}
.dicom-overlay.top-left {
top: 12px;
left: 12px;
}
.dicom-overlay.top-right {
top: 12px;
right: 12px;
text-align: right;
}
.dicom-overlay.bottom-left {
bottom: 12px;
left: 12px;
}
.annotation-tags {
min-height: 48px;
display: flex;
gap: 8px;
align-items: center;
overflow-x: auto;
border-top: 1px solid var(--line);
padding: 8px 12px;
}
.annotation-tags span {
flex: 0 0 auto;
border: 1px solid rgba(25, 214, 195, 0.55);
border-radius: 999px;
background: rgba(20, 184, 166, 0.12);
color: #ccfbf1;
font-size: 12px;
font-weight: 900;
padding: 5px 10px;
}
.slice-row span {
color: var(--muted);
font-size: 12px;
@@ -663,13 +971,13 @@ input[type="range"] {
.pose-grid {
display: grid;
gap: 10px;
padding: 0 12px 12px;
padding: 0 0 12px;
}
.pose-control {
display: grid;
grid-template-columns: 72px minmax(0, 1fr) 72px;
gap: 8px;
grid-template-columns: 56px 26px minmax(0, 1fr) 26px 64px;
gap: 6px;
align-items: center;
}
@@ -690,11 +998,44 @@ input[type="range"] {
padding: 0 7px;
}
.pose-control button,
.pose-actions button,
.auto-box button {
min-height: 28px;
border: 1px solid var(--line);
border-radius: 8px;
background: rgba(8, 13, 20, 0.82);
color: #c6d4e5;
font-size: 11px;
font-weight: 900;
}
.pose-control button:hover,
.pose-actions button:hover,
.auto-box button:hover {
border-color: rgba(25, 214, 195, 0.65);
color: #ccfbf1;
}
.quick-row {
grid-column: 2 / span 3;
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 6px;
}
.pose-actions {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 8px;
margin-bottom: 10px;
}
.flip-row {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 8px;
padding: 0 12px 12px;
padding: 0 0 12px;
}
.flip-row button {
@@ -712,6 +1053,45 @@ input[type="range"] {
background: rgba(20, 184, 166, 0.16);
}
.auto-box {
border: 1px solid rgba(148, 163, 184, 0.18);
border-radius: 10px;
background: rgba(8, 13, 20, 0.62);
padding: 10px;
}
.auto-options {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 8px;
margin-bottom: 10px;
}
.auto-options label {
min-height: 28px;
display: flex;
align-items: center;
justify-content: center;
gap: 5px;
border: 1px solid rgba(148, 163, 184, 0.18);
border-radius: 8px;
background: rgba(15, 22, 32, 0.82);
color: #c7d6e8;
font-size: 11px;
font-weight: 900;
}
.auto-result {
min-height: 36px;
margin-top: 8px;
border-radius: 8px;
background: rgba(7, 10, 15, 0.78);
color: var(--muted);
font-size: 11px;
line-height: 1.5;
padding: 8px;
}
.empty-state {
padding: 22px;
color: var(--muted);
@@ -776,4 +1156,15 @@ input[type="range"] {
.work-grid {
grid-template-columns: 270px minmax(360px, 1fr) 300px;
}
.registration-board {
grid-template-columns: 320px minmax(460px, 1fr) minmax(360px, 0.8fr);
}
}
@media (max-width: 1250px) {
.registration-board {
overflow-x: auto;
grid-template-columns: 320px 560px 420px;
}
}