This commit is contained in:
+332
-4
@@ -290,8 +290,10 @@
|
||||
grid-column: 2;
|
||||
font-size: 0.8rem;
|
||||
min-width: 0;
|
||||
overflow-wrap: anywhere;
|
||||
word-break: break-word;
|
||||
max-height: 1.2rem;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* Custom in-tray spinner (replaces FA fa-spinner) */
|
||||
@@ -341,7 +343,9 @@
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
}
|
||||
.job-log-details > summary {
|
||||
/* Opt-in live log control — collapsed by default so hybrid pull UI isn’t covered */
|
||||
.job-log-details > summary,
|
||||
.job-log-summary {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
@@ -352,14 +356,45 @@
|
||||
color: var(--text-secondary, #c8d1df);
|
||||
font-size: 0.85rem;
|
||||
min-width: 0;
|
||||
padding: 0.4rem 0.55rem;
|
||||
border-radius: 8px;
|
||||
border: 1px solid rgba(51, 65, 85, 0.85);
|
||||
background: rgba(2, 6, 23, 0.45);
|
||||
transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
|
||||
}
|
||||
.job-log-details > summary > span:first-child {
|
||||
.job-log-details > summary:hover,
|
||||
.job-log-summary:hover {
|
||||
color: #e2e8f0;
|
||||
border-color: rgba(45, 212, 191, 0.35);
|
||||
background: rgba(15, 23, 42, 0.85);
|
||||
}
|
||||
.job-log-summary-label {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.job-log-summary-label::before {
|
||||
content: '';
|
||||
display: inline-block;
|
||||
width: 0.4rem;
|
||||
height: 0.4rem;
|
||||
border-right: 1.5px solid currentColor;
|
||||
border-bottom: 1.5px solid currentColor;
|
||||
transform: rotate(-45deg);
|
||||
flex-shrink: 0;
|
||||
opacity: 0.75;
|
||||
transition: transform 0.15s ease;
|
||||
}
|
||||
.job-log-details[open] > summary .job-log-summary-label::before,
|
||||
.job-log-details[open] > .job-log-summary .job-log-summary-label::before {
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
.job-log-details > summary::-webkit-details-marker { display: none; }
|
||||
.job-log-details > summary::marker { content: ''; }
|
||||
.job-log-follow-hint {
|
||||
font-size: 0.7rem;
|
||||
color: #34d399;
|
||||
@@ -411,6 +446,299 @@
|
||||
.job-log--warning { color: #fcd34d; }
|
||||
.job-log-empty { color: #64748b; }
|
||||
|
||||
/* Hybrid image pull / push — fixed-height card (layer slots never add/remove height) */
|
||||
.pull-progress {
|
||||
margin-top: 0.65rem;
|
||||
padding: 0.65rem 0.75rem;
|
||||
border-radius: 10px;
|
||||
background: rgba(2, 6, 23, 0.65);
|
||||
border: 1px solid rgba(51, 65, 85, 0.85);
|
||||
min-width: 0;
|
||||
/* Constant footprint: summary + bar + pips + 4 layer slots + waiting + activity */
|
||||
min-height: 12.5rem;
|
||||
box-sizing: border-box;
|
||||
contain: layout style;
|
||||
}
|
||||
.pull-progress-summary {
|
||||
display: grid;
|
||||
grid-template-columns: auto minmax(0, 1fr) auto;
|
||||
gap: 0.35rem 0.55rem;
|
||||
align-items: baseline;
|
||||
margin-bottom: 0.45rem;
|
||||
min-width: 0;
|
||||
/* single row always */
|
||||
height: 1.15rem;
|
||||
}
|
||||
.pull-progress-phase {
|
||||
font-size: 0.72rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.04em;
|
||||
text-transform: uppercase;
|
||||
color: var(--pd-accent-primary, #2dd4bf);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.pull-progress--extracting .pull-progress-phase {
|
||||
color: #7dd3fc;
|
||||
}
|
||||
.pull-progress--complete .pull-progress-phase {
|
||||
color: #34d399;
|
||||
}
|
||||
.pull-progress--error .pull-progress-phase {
|
||||
color: #f87171;
|
||||
}
|
||||
.pull-progress-meta {
|
||||
font-size: 0.75rem;
|
||||
color: #94a3b8;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.pull-progress-pct {
|
||||
font-size: 0.8rem;
|
||||
font-weight: 700;
|
||||
font-variant-numeric: tabular-nums;
|
||||
color: #e2e8f0;
|
||||
white-space: nowrap;
|
||||
min-width: 2.75rem;
|
||||
text-align: right;
|
||||
}
|
||||
.pull-progress-bar {
|
||||
height: 0.5rem;
|
||||
border-radius: 999px;
|
||||
background: rgba(51, 65, 85, 0.9);
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.pull-progress-bar-fill {
|
||||
height: 100%;
|
||||
border-radius: inherit;
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
rgba(45, 212, 191, 0.75),
|
||||
var(--pd-accent-primary, #2dd4bf)
|
||||
);
|
||||
box-shadow: 0 0 10px rgba(45, 212, 191, 0.35);
|
||||
transition: width 0.35s linear, background 0.4s ease, box-shadow 0.4s ease;
|
||||
min-width: 0;
|
||||
will-change: width;
|
||||
}
|
||||
.pull-progress--extracting .pull-progress-bar-fill {
|
||||
background: linear-gradient(90deg, rgba(56, 189, 248, 0.7), #7dd3fc);
|
||||
box-shadow: 0 0 10px rgba(125, 211, 252, 0.3);
|
||||
}
|
||||
.pull-progress--complete .pull-progress-bar-fill {
|
||||
background: linear-gradient(90deg, rgba(52, 211, 153, 0.75), #34d399);
|
||||
box-shadow: 0 0 10px rgba(52, 211, 153, 0.3);
|
||||
}
|
||||
.pull-progress--error .pull-progress-bar-fill {
|
||||
background: linear-gradient(90deg, rgba(248, 113, 113, 0.7), #f87171);
|
||||
box-shadow: none;
|
||||
}
|
||||
.pull-progress-bar--indet .pull-progress-bar-fill {
|
||||
width: 35% !important;
|
||||
animation: pull-progress-indet 1.1s ease-in-out infinite;
|
||||
}
|
||||
@keyframes pull-progress-indet {
|
||||
0% {
|
||||
transform: translateX(-120%);
|
||||
}
|
||||
100% {
|
||||
transform: translateX(320%);
|
||||
}
|
||||
}
|
||||
/* Fixed-height layer track — one pip per layer (capped); colors change, height never does */
|
||||
.pull-progress-track {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
align-items: center;
|
||||
gap: 0.22rem;
|
||||
margin-top: 0.5rem;
|
||||
height: 0.55rem;
|
||||
min-height: 0.55rem;
|
||||
max-height: 0.55rem;
|
||||
overflow: hidden;
|
||||
min-width: 0;
|
||||
}
|
||||
.pull-layer-pip {
|
||||
flex: 1 1 0;
|
||||
min-width: 0.28rem;
|
||||
max-width: 1.1rem;
|
||||
height: 0.38rem;
|
||||
border-radius: 999px;
|
||||
background: rgba(51, 65, 85, 0.95);
|
||||
box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
|
||||
transition: background 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
|
||||
}
|
||||
.pull-layer-pip--idle {
|
||||
background: rgba(51, 65, 85, 0.45);
|
||||
opacity: 0.55;
|
||||
}
|
||||
.pull-layer-pip--wait {
|
||||
background: rgba(71, 85, 105, 0.95);
|
||||
}
|
||||
.pull-layer-pip--download {
|
||||
background: linear-gradient(90deg, rgba(45, 212, 191, 0.55), var(--pd-accent-primary, #2dd4bf));
|
||||
box-shadow: 0 0 6px rgba(45, 212, 191, 0.35);
|
||||
}
|
||||
.pull-layer-pip--extract {
|
||||
background: linear-gradient(90deg, rgba(56, 189, 248, 0.65), #7dd3fc);
|
||||
box-shadow: 0 0 6px rgba(125, 211, 252, 0.35);
|
||||
animation: pull-layer-pip-pulse 1.2s ease-in-out infinite;
|
||||
}
|
||||
.pull-layer-pip--done {
|
||||
background: linear-gradient(90deg, rgba(52, 211, 153, 0.7), #34d399);
|
||||
box-shadow: 0 0 5px rgba(52, 211, 153, 0.25);
|
||||
}
|
||||
.pull-layer-pip--error {
|
||||
background: linear-gradient(90deg, rgba(248, 113, 113, 0.7), #f87171);
|
||||
}
|
||||
@keyframes pull-layer-pip-pulse {
|
||||
0%,
|
||||
100% {
|
||||
opacity: 0.75;
|
||||
}
|
||||
50% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
/* Fixed 4-slot layer download UI — empty slots keep height stable mid-pull */
|
||||
.pull-progress-layers {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.32rem;
|
||||
margin-top: 0.5rem;
|
||||
/* 4 rows × 1.1rem + 3 gaps × 0.32rem */
|
||||
height: calc(4 * 1.1rem + 3 * 0.32rem);
|
||||
min-height: calc(4 * 1.1rem + 3 * 0.32rem);
|
||||
max-height: calc(4 * 1.1rem + 3 * 0.32rem);
|
||||
overflow: hidden;
|
||||
min-width: 0;
|
||||
}
|
||||
.pull-layer {
|
||||
display: grid;
|
||||
grid-template-columns: 4.5rem minmax(0, 1fr) auto;
|
||||
gap: 0.35rem 0.5rem;
|
||||
align-items: center;
|
||||
height: 1.1rem;
|
||||
min-height: 1.1rem;
|
||||
max-height: 1.1rem;
|
||||
min-width: 0;
|
||||
font-size: 0.7rem;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.pull-layer--empty {
|
||||
opacity: 0.28;
|
||||
pointer-events: none;
|
||||
}
|
||||
.pull-layer-id {
|
||||
font-family: 'JetBrains Mono', ui-monospace, monospace;
|
||||
color: #64748b;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.pull-layer-bar {
|
||||
height: 0.3rem;
|
||||
border-radius: 999px;
|
||||
background: rgba(30, 41, 59, 0.95);
|
||||
overflow: hidden;
|
||||
min-width: 0;
|
||||
}
|
||||
.pull-layer-bar-fill {
|
||||
height: 100%;
|
||||
border-radius: inherit;
|
||||
background: rgba(45, 212, 191, 0.85);
|
||||
transition: width 0.25s linear;
|
||||
min-width: 0;
|
||||
will-change: width;
|
||||
}
|
||||
.pull-layer--waiting .pull-layer-bar-fill {
|
||||
background: rgba(100, 116, 139, 0.85);
|
||||
}
|
||||
.pull-layer--extracting .pull-layer-bar-fill,
|
||||
.pull-layer--downloaded .pull-layer-bar-fill {
|
||||
background: rgba(125, 211, 252, 0.9);
|
||||
}
|
||||
.pull-layer--error .pull-layer-bar-fill {
|
||||
background: rgba(248, 113, 113, 0.9);
|
||||
}
|
||||
.pull-layer-bar--indet .pull-layer-bar-fill {
|
||||
width: 40% !important;
|
||||
animation: pull-progress-indet 1.15s ease-in-out infinite;
|
||||
}
|
||||
.pull-layer--waiting .pull-layer-bar--indet .pull-layer-bar-fill {
|
||||
width: 28% !important;
|
||||
background: rgba(148, 163, 184, 0.75);
|
||||
}
|
||||
.pull-layer-meta {
|
||||
color: #94a3b8;
|
||||
font-variant-numeric: tabular-nums;
|
||||
white-space: nowrap;
|
||||
max-width: 7.5rem;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
text-align: right;
|
||||
}
|
||||
/* Always-on waiting line — empty state still reserves height */
|
||||
.pull-progress-waiting {
|
||||
margin-top: 0.35rem;
|
||||
height: 0.95rem;
|
||||
line-height: 0.95rem;
|
||||
font-size: 0.7rem;
|
||||
color: #64748b;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.pull-progress-waiting--empty {
|
||||
color: transparent;
|
||||
}
|
||||
/* Always-on activity line — explains current work without variable layer rows */
|
||||
.pull-progress-activity {
|
||||
margin-top: 0.35rem;
|
||||
height: 1.15rem;
|
||||
line-height: 1.15rem;
|
||||
font-size: 0.72rem;
|
||||
color: #94a3b8;
|
||||
font-variant-numeric: tabular-nums;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.pull-progress--complete .pull-progress-activity {
|
||||
color: #6ee7b7;
|
||||
}
|
||||
.pull-progress--error .pull-progress-activity {
|
||||
color: #fca5a5;
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.pull-progress-bar-fill {
|
||||
transition: none;
|
||||
}
|
||||
.pull-progress-bar--indet .pull-progress-bar-fill {
|
||||
animation: none;
|
||||
width: 50% !important;
|
||||
}
|
||||
.pull-layer-pip {
|
||||
transition: none;
|
||||
}
|
||||
.pull-layer-pip--extract {
|
||||
animation: none;
|
||||
}
|
||||
.pull-layer-bar-fill {
|
||||
transition: none;
|
||||
}
|
||||
.pull-layer-bar--indet .pull-layer-bar-fill {
|
||||
animation: none;
|
||||
width: 50% !important;
|
||||
}
|
||||
}
|
||||
|
||||
#active-peer-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
|
||||
Reference in New Issue
Block a user