added dedup tools to settings. first pass of mass tag editting to gallery view.

This commit is contained in:
Bryan Van Deusen
2026-01-20 23:45:54 -05:00
parent 87bcb633f6
commit ede1457abc
10 changed files with 1411 additions and 182 deletions
+226
View File
@@ -1507,3 +1507,229 @@ select.form-input optgroup {
top: 45px;
}
}
/*------------------------------------------------------------------------------
Gallery Header Layout
------------------------------------------------------------------------------*/
.gallery-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
flex-wrap: wrap;
gap: 1rem;
margin-bottom: 1rem;
}
.gallery-header-left {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.gallery-header-left h1 {
margin: 0;
}
.gallery-header-actions {
display: flex;
gap: 0.5rem;
align-items: center;
}
/*------------------------------------------------------------------------------
Bulk Select Mode
------------------------------------------------------------------------------*/
/* Select mode body state */
body.select-mode .img-clickable {
cursor: pointer;
position: relative;
}
/* Selection checkbox overlay */
body.select-mode .img-clickable::before {
content: '';
position: absolute;
top: 8px;
left: 8px;
width: 24px;
height: 24px;
border: 2px solid rgba(255, 255, 255, 0.8);
border-radius: 4px;
background: rgba(0, 0, 0, 0.4);
z-index: 10;
transition: all 0.15s ease;
}
body.select-mode .img-clickable.selected::before {
background: var(--btn-primary);
border-color: var(--btn-primary);
}
body.select-mode .img-clickable.selected::after {
content: '\2713';
position: absolute;
top: 8px;
left: 8px;
width: 24px;
height: 24px;
color: white;
font-size: 14px;
font-weight: bold;
display: flex;
align-items: center;
justify-content: center;
z-index: 11;
}
/* Selected image highlight */
body.select-mode .img-clickable.selected {
outline: 3px solid var(--btn-primary);
outline-offset: -3px;
}
/* Prevent hover effects in select mode */
body.select-mode .gallery-item:hover {
transform: none;
}
/* Select button active state */
#selectModeBtn.active {
background: var(--btn-primary);
color: white;
}
/*------------------------------------------------------------------------------
Bulk Editor Panel (slide-in sidebar)
------------------------------------------------------------------------------*/
.bulk-editor-panel {
position: fixed;
top: 0;
right: 0;
width: 320px;
height: 100vh;
background: var(--panel);
border-left: 1px solid rgba(255, 255, 255, 0.1);
z-index: 1100;
transform: translateX(100%);
transition: transform 0.3s ease;
display: flex;
flex-direction: column;
box-shadow: var(--shadow-3);
}
.bulk-editor-panel.active {
transform: translateX(0);
}
.bulk-editor-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.bulk-editor-header h3 {
margin: 0;
font-size: 1.1rem;
}
.bulk-editor-stats {
padding: 0.75rem 1rem;
background: rgba(255, 255, 255, 0.05);
font-size: 0.9rem;
color: var(--text-dim);
}
.bulk-editor-section {
padding: 1rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.bulk-editor-section h4 {
margin: 0 0 0.75rem 0;
font-size: 0.9rem;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.bulk-editor-section .form-help {
margin: 0 0 0.5rem 0;
font-size: 0.8rem;
color: var(--text-muted);
}
.bulk-editor-section .tags {
min-height: 32px;
}
.bulk-editor-actions {
padding: 1rem;
margin-top: auto;
}
/* Removable tag chips in bulk editor */
.bulk-editor-section .tag-chip.removable {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 4px 8px;
background: rgba(255, 255, 255, 0.12);
border: 1px solid rgba(255, 255, 255, 0.15);
color: var(--text);
cursor: default;
}
.bulk-editor-section .tag-chip.removable:hover {
background: rgba(255, 255, 255, 0.18);
}
.bulk-editor-section .tag-chip .x {
background: none;
border: none;
color: rgba(255, 255, 255, 0.5);
cursor: pointer;
padding: 0;
margin-left: 2px;
font-size: 1rem;
line-height: 1;
}
.bulk-editor-section .tag-chip .x:hover {
color: #ef4444;
}
/* Text muted helper */
.text-muted {
color: var(--text-muted);
font-size: 0.85rem;
}
/* Mobile: full-width panel from bottom */
@media (max-width: 640px) {
.bulk-editor-panel {
width: 100%;
height: auto;
max-height: 60vh;
top: auto;
bottom: 0;
transform: translateY(100%);
border-left: none;
border-top: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 16px 16px 0 0;
}
.bulk-editor-panel.active {
transform: translateY(0);
}
.gallery-header {
flex-direction: column;
align-items: stretch;
}
.gallery-header-actions {
justify-content: flex-end;
}
}