Skip to content
This repository has been archived by the owner on Sep 8, 2022. It is now read-only.

[MIRROR] [PORT] Popper Tooltips 2 (they don't crash this time) #150

Merged
merged 2 commits into from
Aug 24, 2021

Conversation

SinguloBot
Copy link
Contributor

Original PR: BeeStation/BeeStation-Hornet#4832

About The Pull Request

Ports the following PR:

Tooltips now use Popper, which allows them to work more reliably, including automatically changing the tooltip position if it were to go offscreen.

Visually, the tooltips should be unchanged in most situations, except for cases where they'd go off-screen.

NOTE: In terms of code, tooltip usage has changed. Previously you would put a tooltip element inside the thing that gets the tooltip. Now you wrap the tooltip around the thing that gets the tooltip.

Additionally fixes Guardian.js (holoparasite) stats - they were completely broken, displaying [object Object] instead of the name. Now they display the name and tooltip with descrition properly. Also expand it by 80 pixels (500->580) horizontally so the tabs fit properly, otherwise they get scrunched up and look horrible.

image

Why It's Good For The Game

Better-behaved tooltips, fixes holoparasite stat selection.

Changelog

馃啈
code: tgui tooltips now use Popper
fix: Holoparasite stat selection now displays stats correctly
/:cl:

KubeRoot and others added 2 commits August 19, 2021 13:01
* Popper Tooltips 2 (they don't crash this time) (#58980)

Co-authored-by: Aleksej Komarov <stylemistake@gmail.com>

* Fix guardian stats names and tooltips not working

* Update KitchenSink.js to match Tooltip.stories.js

* Build tgui

* Rebuild tgui

* Fix CRLF

* Expand guardian window

Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
Co-authored-by: Aleksej Komarov <stylemistake@gmail.com>
@Urumasi Urumasi merged commit bf2553f into master Aug 24, 2021
@Urumasi Urumasi deleted the upstream-merge-4832 branch August 24, 2021 16:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants