fix(ui): clamp filter panel height to viewport

This commit is contained in:
Will Miao
2026-08-07 16:53:04 +08:00
parent 2b8a2fc7d8
commit 86376284f4
2 changed files with 3 additions and 0 deletions

View File

@@ -356,6 +356,8 @@ export function updatePanelPositions() {
if (filterPanel) {
filterPanel.style.top = `${topPosition}px`;
// Clamp panel height to the viewport below the header
filterPanel.style.maxHeight = `calc(100vh - ${topPosition + 10}px)`;
}
// Adjust panel horizontal position based on the search container