Hide indicators wrapper when empty
Prior to this change, we always generated a wrapper DIV to contain MediaWiki indicators, even when there were no indicators. Consequently, the layout could be thrown off by the visible margins of this otherwise invisible (empty) element: https://code.librehq.com/ots/clients/lfc/torque-tracker/-/issues/121
This change adds a check for the existence and non-emptiness of the indicator array and only renders the wrapper if there are indicators.
Testing:
- Load Explore on
main
-
❌ The right edge of the Explore interface shouldn't be aligned with the right edge of the Favorite icon/button - Change to this branch and reload
-
✅ Now the right edges should be aligned - Additional test: Load a page that does have indicators and make sure the element still renders. (I don't know how!)
Closes https://code.librehq.com/ots/clients/lfc/torque-tracker/-/issues/121