removed trial preview for numbering
This commit is contained in:
@@ -29,8 +29,6 @@
|
|||||||
dom.tagInput = document.getElementById('bulkTagInput');
|
dom.tagInput = document.getElementById('bulkTagInput');
|
||||||
dom.autocomplete = document.getElementById('bulkTagAutocomplete');
|
dom.autocomplete = document.getElementById('bulkTagAutocomplete');
|
||||||
dom.commonTags = document.getElementById('commonTagsList');
|
dom.commonTags = document.getElementById('commonTagsList');
|
||||||
dom.floatingPreview = document.getElementById('floatingPreview');
|
|
||||||
dom.floatingPreviewImage = document.getElementById('floatingPreviewImage');
|
|
||||||
|
|
||||||
if (!dom.selectBtn || !dom.panel) return;
|
if (!dom.selectBtn || !dom.panel) return;
|
||||||
|
|
||||||
@@ -66,30 +64,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Preview on hover in select mode
|
|
||||||
document.addEventListener('mouseenter', handlePreviewShow, true);
|
|
||||||
document.addEventListener('mouseleave', handlePreviewHide, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
function handlePreviewShow(e) {
|
|
||||||
if (!state.isSelectMode || !dom.floatingPreview) return;
|
|
||||||
const item = e.target.closest('.img-clickable');
|
|
||||||
if (!item) return;
|
|
||||||
|
|
||||||
const fullSrc = item.dataset.full;
|
|
||||||
if (fullSrc && dom.floatingPreviewImage) {
|
|
||||||
dom.floatingPreviewImage.src = fullSrc;
|
|
||||||
dom.floatingPreview.classList.add('active');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function handlePreviewHide(e) {
|
|
||||||
if (!dom.floatingPreview) return;
|
|
||||||
const item = e.target.closest('.img-clickable');
|
|
||||||
if (!item) return;
|
|
||||||
|
|
||||||
dom.floatingPreview.classList.remove('active');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleSelectMode() {
|
function toggleSelectMode() {
|
||||||
|
|||||||
@@ -2036,35 +2036,6 @@ body.select-mode .gallery-infinite-container {
|
|||||||
font-size: 0.85rem;
|
font-size: 0.85rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Floating preview overlay (for select mode hover) */
|
|
||||||
.floating-preview {
|
|
||||||
display: none;
|
|
||||||
position: fixed;
|
|
||||||
top: 80px;
|
|
||||||
left: 50%;
|
|
||||||
transform: translateX(-50%);
|
|
||||||
z-index: 1000;
|
|
||||||
width: 600px;
|
|
||||||
height: 500px;
|
|
||||||
background: var(--panel);
|
|
||||||
border: 2px solid var(--accent);
|
|
||||||
border-radius: 8px;
|
|
||||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
|
|
||||||
padding: 4px;
|
|
||||||
pointer-events: none;
|
|
||||||
}
|
|
||||||
.floating-preview.active {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
.floating-preview img {
|
|
||||||
max-width: 100%;
|
|
||||||
max-height: 100%;
|
|
||||||
object-fit: contain;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Selection order badge on gallery items */
|
/* Selection order badge on gallery items */
|
||||||
.selection-order-badge {
|
.selection-order-badge {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
@@ -120,11 +120,6 @@
|
|||||||
<!-- Modal -->
|
<!-- Modal -->
|
||||||
{% include '_gallery_modal.html' %}
|
{% include '_gallery_modal.html' %}
|
||||||
|
|
||||||
<!-- Floating Preview (for select mode hover) -->
|
|
||||||
<div id="floatingPreview" class="floating-preview">
|
|
||||||
<img id="floatingPreviewImage" src="" alt="Preview">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Bulk Editor Panel -->
|
<!-- Bulk Editor Panel -->
|
||||||
<aside id="bulkEditorPanel" class="bulk-editor-panel">
|
<aside id="bulkEditorPanel" class="bulk-editor-panel">
|
||||||
<div class="bulk-editor-header">
|
<div class="bulk-editor-header">
|
||||||
|
|||||||
Reference in New Issue
Block a user