homebridge / homebridge-config-ui-x

The Homebridge UI. Monitor, configure and backup Homebridge from a browser.
https://homebridge.io
MIT License
2.61k stars 370 forks source link

Replace problematic tooltip #1895

Closed mkz212 closed 8 months ago

mkz212 commented 9 months ago

Not so beautiful but does not make problems and disappears on mobile devices.

Zrzut ekranu 2023-12-1 o 15 27 27
bwp91 commented 9 months ago

I'm not a fan of this, I think I would rather the tooltip stay visible, or we find a different solution. What do you think @donavanbecker ?

mkz212 commented 9 months ago

Easies solution, if you want current tooltip, is detect if device is mobile (you have function for this) and if so, do not display tooltip.

First option is disableTooltip. See https://ng-bootstrap.github.io/#/components/tooltip/api .

Second option is using ngif to display / hide element - here every element will be doubled - one with tooltip and one without.

donavanbecker commented 9 months ago

Yeah I would rather disable for mobile.

bwp91 commented 8 months ago

Let's close this and we can look into another potential solution of globally disabling tooltip on mobile?