Skip to content

Commit

Permalink
fix: select dropdown cneter alignment calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
ndom91 committed Jan 23, 2025
1 parent 20908e8 commit d2d63db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/desktop/src/components/Select.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
style:left={inputBoundingRect?.left && popupAlign === 'left'
? `${inputBoundingRect.left}px`
: optionsGroupBoundingRect && inputBoundingRect && popupAlign === 'center'
? `${window.innerWidth / 2 - (optionsGroupBoundingRect.width - inputBoundingRect.width / 2) / 2}px`
? `${window.innerWidth / 2 - optionsGroupBoundingRect.width / 2}px`
: undefined}
style:right={inputBoundingRect?.right && popupAlign === 'right'
? `${window.innerWidth - inputBoundingRect.right}px`
Expand Down

0 comments on commit d2d63db

Please sign in to comment.