samcf / ogres

Free online virtual tabletop that runs in your browser. No sign ups, no ads, no nonsense.
https://ogres.app
GNU Affero General Public License v3.0
91 stars 8 forks source link

fix: have toolbar tooltip render absolutely to fix layout shifts #142

Closed TorranceYang closed 5 months ago

TorranceYang commented 5 months ago

Closes #125

Solution I picked was to make tooltip render absolutely so as to not affect the toolbar. Takes a little math to correctly calculate offset and width, but tested on multiple screen sizes and should close out the issue!

https://github.com/samcf/ogres/assets/16494135/6a2b7166-48b0-4b9c-9b40-c242fc57a687

samcf commented 5 months ago

Nice! Let me check this out today.

samcf commented 5 months ago

Works for me, great solution! Thanks for the patch; merging.