diff --git a/ui/static/index.html b/ui/static/index.html index c729853..f7db682 100644 --- a/ui/static/index.html +++ b/ui/static/index.html @@ -194,6 +194,101 @@ body { background: var(--surface-darken); } +/* File Chips */ +.file-chips { + display: flex; + flex-wrap: wrap; + gap: 6px; + margin-bottom: 6px; + min-height: 0; +} + +.file-chip { + position: relative; + display: flex; + align-items: center; + gap: 4px; + background: var(--surface-darken); + border: 1px solid var(--primary); + border-radius: 4px; + padding: 4px 8px 4px 8px; + font-size: 12px; +} + +.file-chip-remove { + position: absolute; + top: -7px; + left: -7px; + width: 16px; + height: 16px; + background: var(--accent); + color: #fff; + border: 1px solid var(--surface); + border-radius: 50%; + font-size: 11px; + line-height: 16px; + text-align: center; + cursor: pointer; + font-weight: bold; + user-select: none; +} + +.file-chip-remove:hover { + background: #ff1744; + transform: scale(1.1); +} + +.file-chip-icon { + font-size: 16px; +} + +.file-chip-name { + color: var(--text); + max-width: 180px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.file-chip-size { + color: var(--text-muted); + font-size: 10px; +} + +/* Drag & Drop */ +.input-box.drag-over { + outline: 2px dashed var(--accent); + outline-offset: -4px; + background: rgba(233, 69, 96, 0.05); + border-radius: 4px; +} + +.drag-overlay { + display: none; + position: absolute; + inset: 0; + background: rgba(26, 26, 46, 0.85); + align-items: center; + justify-content: center; + z-index: 10; + border-radius: 4px; + pointer-events: none; +} + +.drag-over .drag-overlay { + display: flex; +} + +.drag-overlay-text { + color: var(--accent); + font-size: 18px; + font-weight: bold; + border: 3px dashed var(--accent); + padding: 20px 40px; + border-radius: 8px; + background: var(--surface-darken); +} + .btn { @@ -598,12 +693,14 @@ body { -