Repository navigation
[preview card] Integrate inline positioning - #2074
Conversation
commit: |
This comment was marked as outdated.
This comment was marked as outdated.
f6338d2 to
1158c4c
Compare
This comment was marked as outdated.
This comment was marked as outdated.
1f4d6cc to
cde5577
Compare
cde5577 to
04fe93c
Compare
|
Hello 👋🏻 Currently, we are experiencing a similar issue with the |
Bundle size report
Check out the code infra dashboard for more information about this PR. |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
f159eea to
5c35ad5
Compare
oleksandr-danylchenko
left a comment
There was a problem hiding this comment.
Thanks! The extracted getInlineRectHoverCoords and createInlineMiddleware look pretty good! I like how nicely they fit into an existing infrastructure. I believe that the next step will be adding the inline condition prop for the *Positioner components. Ideally, the consumers may be able to control which clientRect will be picked. Either only the first one, or the hovered one.
|
@oleksandr-danylchenko what's a reason to not choose the hovered one? |
I'd say "design preference". Consumers might wanna show the popover in a "static" place, over the 1st client rectangle. That would correspond to the |
8ea5633 to
9fb87ea
Compare
20b00d4 to
3c317c4
Compare
Bundle size
PerformanceTotal duration: 1,128.67 ms 🔺+39.55 ms(+3.6%) | Renders: 50 (+0) | Paint: 1,722.98 ms 🔺+51.83 ms(+3.1%)
…and 7 more — details Check out the code infra dashboard for more information about this PR. |
|
Hey, @atomiks 👋🏻 |
|
I'm just trying to keep it scoped to preview card for now, as it's the most commonly affected component where this inline positioning is needed as the cost of this is not free |
5bfe9bb to
aa5d637
Compare
Review summaryAggregated findings from a multi-agent review (code, tests, error handling, comments) plus one external finding. Recurring concerns cluster around how Critical
Important
Suggestions
Strengths
Recommended action
|
dca68c1 to
a9d8440
Compare

Closes #2064
Previously it would choose the whole bounding client rect rather than choosing an individual client rect.
align="start"sort of alleviates this problem but you can't use center positioning or other sides.https://deploy-preview-2074--base-ui.netlify.app/experiments/inline-positioning
Screen.Recording.2025-06-06.at.4.21.44.pm.mov