diff --git a/ui/lobby/src/view/realTime/list.ts b/ui/lobby/src/view/realTime/list.ts index 55ce784d365e4..a99adbe46824a 100644 --- a/ui/lobby/src/view/realTime/list.ts +++ b/ui/lobby/src/view/realTime/list.ts @@ -25,7 +25,7 @@ function renderHook(ctrl: LobbyController, hook: Hook) { }, tds([ hook.rating - ? h('span.ulink.ulpt', { attrs: { 'data-href': '/@/' + hook.u } }, hook.u) + ? h('span.ulink.ulpt.mobile-powertip', { attrs: { 'data-href': '/@/' + hook.u } }, hook.u) : i18n.site.anonymous, hook.rating && ctrl.opts.showRatings ? hook.rating + (hook.prov ? '?' : '') : '', hook.clock, diff --git a/ui/site/src/powertip.ts b/ui/site/src/powertip.ts index 407527818aa21..e73f9497ff30b 100644 --- a/ui/site/src/powertip.ts +++ b/ui/site/src/powertip.ts @@ -64,10 +64,9 @@ const imagePowertip = (el: HTMLElement) => }); function powerTipWith(el: HTMLElement, ev: Event, f: (el: HTMLElement) => void) { - if (!('ontouchstart' in window)) { - f(el); - $.powerTip.show(el, ev); - } + if ('ontouchstart' in window && !el.classList.contains('mobile-powertip')) return; + f(el); + $.powerTip.show(el, ev); } function onIdleForAll(par: HTMLElement, sel: string, f: (el: HTMLElement) => void) {