mirror of
https://github.com/immich-app/immich.git
synced 2026-03-26 11:50:53 +03:00
fix(web): allow showing combobox items outside modals (#27075)
fix(web): allow showing combobox items outside of modals
This commit is contained in:
@@ -212,12 +212,12 @@
|
|||||||
bottom: `${rootHeight - top}px`,
|
bottom: `${rootHeight - top}px`,
|
||||||
left: `${left}px`,
|
left: `${left}px`,
|
||||||
width: `${boundary.width}px`,
|
width: `${boundary.width}px`,
|
||||||
maxHeight: maxHeight(top - dropdownOffset),
|
maxHeight: maxHeight(boundary.top - dropdownOffset),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
const viewportHeight = visualViewport?.height || rootHeight;
|
const viewportHeight = visualViewport?.height || window.innerHeight;
|
||||||
const availableHeight = modalBounds ? rootHeight - bottom : viewportHeight - boundary.bottom;
|
const availableHeight = viewportHeight - boundary.bottom;
|
||||||
return {
|
return {
|
||||||
top: `${bottom}px`,
|
top: `${bottom}px`,
|
||||||
left: `${left}px`,
|
left: `${left}px`,
|
||||||
|
|||||||
Reference in New Issue
Block a user