correct mass tag edit menu overlap

This commit is contained in:
Bryan Van Deusen
2026-01-21 22:52:20 -05:00
parent 041a3dbfb4
commit f41acb40f6
2 changed files with 28 additions and 2 deletions
+11 -2
View File
@@ -344,9 +344,18 @@
function positionAutocomplete() {
if (!dom.autocomplete || !dom.tagInput) return;
const rect = dom.tagInput.getBoundingClientRect();
const viewportWidth = window.innerWidth;
const dropdownWidth = rect.width;
// Calculate left position, ensuring dropdown doesn't overflow right edge
let leftPos = rect.left;
if (leftPos + dropdownWidth > viewportWidth - 8) {
leftPos = viewportWidth - dropdownWidth - 8;
}
dom.autocomplete.style.top = `${rect.bottom + 4}px`;
dom.autocomplete.style.left = `${rect.left}px`;
dom.autocomplete.style.width = `${rect.width}px`;
dom.autocomplete.style.left = `${leftPos}px`;
dom.autocomplete.style.width = `${dropdownWidth}px`;
}
async function fetchAutocomplete(query) {
+17
View File
@@ -671,6 +671,8 @@ header {
display: none;
box-shadow: var(--shadow-3);
min-width: 200px;
max-width: calc(100vw - 16px);
box-sizing: border-box;
}
.tag-autocomplete.active {
display: block;
@@ -1584,6 +1586,19 @@ body.select-mode .gallery-item:hover {
color: white;
}
/* Push gallery content left when bulk editor panel is visible */
body.select-mode .gallery-infinite-container {
margin-right: 320px;
transition: margin-right 0.3s ease;
}
@media (max-width: 768px) {
/* On mobile, don't shift content - panel will overlay */
body.select-mode .gallery-infinite-container {
margin-right: 0;
}
}
/*------------------------------------------------------------------------------
Bulk Editor Panel (slide-in sidebar)
------------------------------------------------------------------------------*/
@@ -1601,6 +1616,8 @@ body.select-mode .gallery-item:hover {
display: flex;
flex-direction: column;
box-shadow: var(--shadow-3);
overflow-y: auto;
overflow-x: hidden;
}
.bulk-editor-panel.active {