mirror of
https://github.com/tiennm99/coolify.git
synced 2026-09-04 22:16:35 +00:00
fix: handle complete empty snapshots and match dropdown trigger width
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
const availableHeight = window.innerHeight - (edge * 2);
|
||||
const triggerRect = trigger.getBoundingClientRect();
|
||||
const desiredWidth = config.matchTriggerWidth
|
||||
? Math.max(triggerRect.width, panel.offsetWidth)
|
||||
? triggerRect.width
|
||||
: panel.offsetWidth;
|
||||
const panelWidth = Math.min(desiredWidth, availableWidth);
|
||||
const panelHeight = Math.min(panel.scrollHeight, config.maxHeight ?? availableHeight);
|
||||
|
||||
Reference in New Issue
Block a user