feat(image-manipulator): fix inpainting mask offset, add background job governance with time limit, split view and enterprise presets
This commit is contained in:
@@ -759,19 +759,32 @@ html, body {
|
||||
height: 100%;
|
||||
cursor: crosshair;
|
||||
z-index: 26;
|
||||
opacity: 0.35;
|
||||
opacity: 0.82;
|
||||
touch-action: none;
|
||||
}
|
||||
|
||||
#brush-cursor-ring {
|
||||
position: fixed;
|
||||
pointer-events: none;
|
||||
border: 1.5px solid #ff3333;
|
||||
border: 1.5px solid rgba(244, 63, 94, 0.95);
|
||||
border-radius: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
display: none;
|
||||
z-index: 1000;
|
||||
box-shadow: 0 0 8px rgba(255, 51, 51, 0.6);
|
||||
z-index: 9999;
|
||||
box-shadow: 0 0 12px rgba(244, 63, 94, 0.55), inset 0 0 4px rgba(244, 63, 94, 0.35);
|
||||
}
|
||||
|
||||
#brush-cursor-ring::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: 3px;
|
||||
height: 3px;
|
||||
background: #ffffff;
|
||||
border-radius: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
box-shadow: 0 0 4px #000;
|
||||
}
|
||||
|
||||
/* ═══════════════════════════════════════════════════════════════════
|
||||
@@ -1386,3 +1399,292 @@ input[type="range"]::-webkit-slider-thumb:hover {
|
||||
.toast.error i {
|
||||
color: #ef4444;
|
||||
}
|
||||
|
||||
/* ═══════════════════════════════════════════════════════════════════
|
||||
SPLIT VIEW BEFORE / AFTER COMPARISON SLIDER
|
||||
═══════════════════════════════════════════════════════════════════ */
|
||||
.ps-split-container {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
pointer-events: auto;
|
||||
z-index: 24;
|
||||
overflow: hidden;
|
||||
user-select: none;
|
||||
border-radius: var(--r-md);
|
||||
}
|
||||
|
||||
.ps-split-clip-wrap {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: 50%;
|
||||
overflow: hidden;
|
||||
border-right: 2px solid var(--accent-cyan);
|
||||
box-shadow: 2px 0 16px rgba(56, 189, 248, 0.45);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.ps-split-img {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
max-width: none;
|
||||
height: 100%;
|
||||
display: block;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.ps-split-bar {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 50%;
|
||||
width: 3px;
|
||||
background: var(--accent-cyan);
|
||||
cursor: ew-resize;
|
||||
z-index: 28;
|
||||
transform: translateX(-50%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: 0 0 12px var(--accent-cyan-glow);
|
||||
}
|
||||
|
||||
.ps-split-knob {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border-radius: 50%;
|
||||
background: rgba(10, 12, 18, 0.95);
|
||||
border: 1.5px solid var(--accent-cyan);
|
||||
color: var(--accent-cyan);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 11px;
|
||||
box-shadow: 0 0 16px rgba(0, 0, 0, 0.8), 0 0 10px var(--accent-cyan-glow);
|
||||
cursor: ew-resize;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.ps-split-tag {
|
||||
position: absolute;
|
||||
top: 14px;
|
||||
padding: 4px 10px;
|
||||
border-radius: var(--r-full);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
pointer-events: none;
|
||||
backdrop-filter: blur(12px);
|
||||
z-index: 27;
|
||||
}
|
||||
|
||||
.ps-split-tag-before {
|
||||
left: 14px;
|
||||
background: rgba(139, 92, 246, 0.35);
|
||||
border: 1px solid rgba(139, 92, 246, 0.55);
|
||||
color: #ffffff;
|
||||
box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
|
||||
}
|
||||
|
||||
.ps-split-tag-after {
|
||||
right: 14px;
|
||||
background: rgba(56, 189, 248, 0.35);
|
||||
border: 1px solid rgba(56, 189, 248, 0.55);
|
||||
color: #ffffff;
|
||||
box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
|
||||
}
|
||||
|
||||
/* ═══════════════════════════════════════════════════════════════════
|
||||
HISTORY TIMELINE PANEL
|
||||
═══════════════════════════════════════════════════════════════════ */
|
||||
.ps-history-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 9px 12px;
|
||||
background: var(--bg-input);
|
||||
border: 1px solid var(--border-1);
|
||||
border-radius: var(--r-md);
|
||||
cursor: pointer;
|
||||
transition: all 0.18s ease;
|
||||
}
|
||||
|
||||
.ps-history-item:hover {
|
||||
background: var(--bg-card-hover);
|
||||
border-color: var(--border-2);
|
||||
transform: translateX(2px);
|
||||
}
|
||||
|
||||
.ps-history-item.active {
|
||||
background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(139, 92, 246, 0.08) 100%);
|
||||
border-color: var(--primary);
|
||||
box-shadow: 0 0 12px var(--primary-alpha);
|
||||
}
|
||||
|
||||
.ps-history-name {
|
||||
font-size: 11.5px;
|
||||
font-weight: 600;
|
||||
color: var(--text-1);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.ps-history-time {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 10px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
/* ═══════════════════════════════════════════════════════════════════
|
||||
ENTERPRISE BACKGROUND JOBS HUB
|
||||
═══════════════════════════════════════════════════════════════════ */
|
||||
.ps-job-counter {
|
||||
font-size: 9px;
|
||||
font-family: var(--font-mono);
|
||||
background: var(--primary);
|
||||
color: #fff;
|
||||
padding: 1px 5px;
|
||||
border-radius: var(--r-full);
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
.ps-job-card {
|
||||
background: var(--bg-input);
|
||||
border: 1px solid var(--border-2);
|
||||
border-radius: var(--r-md);
|
||||
padding: 12px 14px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
transition: all 0.2s ease;
|
||||
box-shadow: var(--sh-glass);
|
||||
}
|
||||
|
||||
.ps-job-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.ps-job-id {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.ps-job-badge {
|
||||
font-size: 9.5px;
|
||||
font-family: var(--font-mono);
|
||||
font-weight: 700;
|
||||
padding: 2px 7px;
|
||||
border-radius: 4px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.ps-job-badge.processing {
|
||||
background: rgba(56, 189, 248, 0.20);
|
||||
border: 1px solid rgba(56, 189, 248, 0.50);
|
||||
color: #38bdf8;
|
||||
animation: pulse 1.8s infinite;
|
||||
}
|
||||
|
||||
.ps-job-badge.completed {
|
||||
background: rgba(16, 185, 129, 0.20);
|
||||
border: 1px solid rgba(16, 185, 129, 0.50);
|
||||
color: #10b981;
|
||||
}
|
||||
|
||||
.ps-job-badge.timed_out {
|
||||
background: rgba(239, 68, 68, 0.20);
|
||||
border: 1px solid rgba(239, 68, 68, 0.50);
|
||||
color: #ef4444;
|
||||
}
|
||||
|
||||
.ps-job-badge.cancelled {
|
||||
background: rgba(148, 163, 184, 0.20);
|
||||
border: 1px solid rgba(148, 163, 184, 0.40);
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
.ps-job-timer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
font-size: 10.5px;
|
||||
font-family: var(--font-mono);
|
||||
color: var(--text-3);
|
||||
}
|
||||
|
||||
.ps-job-actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
/* ═══════════════════════════════════════════════════════════════════
|
||||
PRESETS MODAL
|
||||
═══════════════════════════════════════════════════════════════════ */
|
||||
.ps-presets-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 10px;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.ps-preset-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 10px 14px;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border-2);
|
||||
border-radius: var(--r-md);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
}
|
||||
|
||||
.ps-preset-card:hover {
|
||||
background: var(--bg-card-hover);
|
||||
border-color: var(--primary);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 8px 24px var(--primary-alpha);
|
||||
}
|
||||
|
||||
.ps-preset-icon {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
border-radius: var(--r-md);
|
||||
background: rgba(139, 92, 246, 0.18);
|
||||
border: 1px solid rgba(139, 92, 246, 0.35);
|
||||
color: #c084fc;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 16px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.ps-preset-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.ps-preset-title {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.ps-preset-dims {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 10.5px;
|
||||
color: var(--accent-cyan);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user