You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 88a44ac
Browse filesBrowse the repository at this point in the historyBrowse files
fix(website): clamp info-tip bubbles inside the viewport
The bubble is horizontally centered on its (i) toggle, so a toggle near
the viewport edge (e.g. the I/O card's tooltip on the homepage) opened
half outside the screen and clipped. max-width bounds the width, not
the position.
On open — hover, tap or keyboard — the bubble now shifts horizontally
to stay 12px inside the viewport, and re-clamps on resize. The shift is
measured from the bubble's real rect after layout and removed on close.
Info-tip bubbles no longer clip at the viewport edge: the tooltip is centered on its (i) toggle, so near an edge it overflowed. On open (hover, tap or keyboard) the bubble now shifts horizontally to stay inside the viewport, and re-clamps on resize.
0 commit comments