chore: format

This commit is contained in:
Timothy Jaeryang Baek
2026-07-20 22:11:42 -04:00
parent 4a42543fc3
commit 49e57f4e7e
16 changed files with 44 additions and 60 deletions
+6 -2
View File
@@ -154,8 +154,12 @@
}
const availableHeight = Math.max(0, openAbove ? spaceAbove : spaceBelow);
const constrainedHeight = contentHeight ? Math.min(contentHeight, availableHeight) : contentHeight;
const preferredTop = openAbove ? rect.top - constrainedHeight - sideOffset : rect.bottom + sideOffset;
const constrainedHeight = contentHeight
? Math.min(contentHeight, availableHeight)
: contentHeight;
const preferredTop = openAbove
? rect.top - constrainedHeight - sideOffset
: rect.bottom + sideOffset;
const contentWidth = contentEl.offsetWidth || 0;
const preferredLeft = align === 'end' && contentWidth ? rect.right - contentWidth : rect.left;
const maxLeft = contentWidth ? viewportRight - contentWidth - pad : preferredLeft;