mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-17 04:15:02 +00:00
fix: handle complete empty snapshots and match dropdown trigger width
This commit is contained in:
1 parent
9729e765b4
commit
e28d8ca0ff
4 files changed
+23
-21
No files matched your search
@@ -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