1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-21 22:05:38 -04:00

Fix issues with Floating UI

This commit is contained in:
Mark McDowall
2025-04-07 16:09:25 -07:00
parent f7eece32e7
commit e52b68ee7d
5 changed files with 74 additions and 60 deletions
@@ -93,9 +93,10 @@ function AutoSuggestInput<T = any>(props: AutoSuggestInputProps<T>) {
mainAxis: true,
}),
size({
apply({ rects, elements }) {
apply({ availableHeight, elements, rects }) {
Object.assign(elements.floating.style, {
width: `${rects.reference.width}px`,
minWidth: `${rects.reference.width}px`,
maxHeight: `${Math.max(0, availableHeight)}px`,
});
},
}),