fix(desktop): pin pointer-capture hint box size so it is not stretched to 100vh #78
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/VAPP-68-hint-pill-height"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The pointer-capture notice created by make_hint() is a bare
directly to document.body, so it matches the global assets/main.css rule
#main, body > div { height: 100vh }. With no height in its inline style, thestylesheet rule won and the pill rendered as a full-height, centered vertical
bar while the pointer was locked. Add explicit
height: auto; width: max-content;to both HINT_STYLE_HIDDEN and HINT_STYLE_SHOWN; an inline declaration beats the
non-!important selector, so the pill sizes to its text and the global rule stays
untouched for the app root it is meant to size.
#VAPP-68
The pointer-capture notice created by make_hint() is a bare <div> appended directly to document.body, so it matches the global assets/main.css rule `#main, body > div { height: 100vh }`. With no height in its inline style, the stylesheet rule won and the pill rendered as a full-height, centered vertical bar while the pointer was locked. Add explicit `height: auto; width: max-content;` to both HINT_STYLE_HIDDEN and HINT_STYLE_SHOWN; an inline declaration beats the non-!important selector, so the pill sizes to its text and the global rule stays untouched for the app root it is meant to size. #VAPP-68