correct mass tag edit menu overlap
This commit is contained in:
@@ -344,9 +344,18 @@
|
|||||||
function positionAutocomplete() {
|
function positionAutocomplete() {
|
||||||
if (!dom.autocomplete || !dom.tagInput) return;
|
if (!dom.autocomplete || !dom.tagInput) return;
|
||||||
const rect = dom.tagInput.getBoundingClientRect();
|
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.top = `${rect.bottom + 4}px`;
|
||||||
dom.autocomplete.style.left = `${rect.left}px`;
|
dom.autocomplete.style.left = `${leftPos}px`;
|
||||||
dom.autocomplete.style.width = `${rect.width}px`;
|
dom.autocomplete.style.width = `${dropdownWidth}px`;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function fetchAutocomplete(query) {
|
async function fetchAutocomplete(query) {
|
||||||
|
|||||||
@@ -671,6 +671,8 @@ header {
|
|||||||
display: none;
|
display: none;
|
||||||
box-shadow: var(--shadow-3);
|
box-shadow: var(--shadow-3);
|
||||||
min-width: 200px;
|
min-width: 200px;
|
||||||
|
max-width: calc(100vw - 16px);
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
.tag-autocomplete.active {
|
.tag-autocomplete.active {
|
||||||
display: block;
|
display: block;
|
||||||
@@ -1584,6 +1586,19 @@ body.select-mode .gallery-item:hover {
|
|||||||
color: white;
|
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)
|
Bulk Editor Panel (slide-in sidebar)
|
||||||
------------------------------------------------------------------------------*/
|
------------------------------------------------------------------------------*/
|
||||||
@@ -1601,6 +1616,8 @@ body.select-mode .gallery-item:hover {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
box-shadow: var(--shadow-3);
|
box-shadow: var(--shadow-3);
|
||||||
|
overflow-y: auto;
|
||||||
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bulk-editor-panel.active {
|
.bulk-editor-panel.active {
|
||||||
|
|||||||
Reference in New Issue
Block a user