Univention Bugzilla – Bug 39663
App Center gallery - mouseover with app description is not shown on touch devices
Last modified: 2015-11-26 15:17:56 CET
Created attachment 7234 [details]
App tile in normal and hovered state
When hovering over an app tile in the UMC App Center gallery, the logo is faded out and the app description appears. However, this is not shown on a touch device. It would be helpful to implement a way for showing the app description on touch devices, as well.
A possible implementation would be to show the app description on the first touch, and open the app detail view on a second touch.
(In reply to Alexander Kläser from comment #0)
> Created attachment 7234 [details]
> A possible implementation would be to show the app description on the first
> touch, and open the app detail view on a second touch.
Done. On a touch device [has('touch')] the app description is shown on the first touch and the detail view on the second one.
r 65754 yaml
yes, it works.
Some technical details:
On non-touch devices every hover of the app toggles a CSS class in the domnode secondTouch. There is a parameter 'false' missing in the domClass.toggle() call. It doesn't break anything.
In general it is not good practice to use the unsanitized app id as HTML id:
1. If the AppCenter wouldn't be a singleton it would break due to duplicated ID's.
2. If the AppCenter would allow characters like !"§$%&/( in the App-Id this would also break.
3. It will still break if we one day release a App with ID == some hardcoded ID we use in the HTML code.
It's better to generate some ID like appcenterOverview-$app_0.
Therefore I tested also an installation of a app which doesn't seem to trigger errors as the reload of the category removes the elements from the DOM first.