From ded596fe3d6279e3d28e4d2402fbd877fbaf59c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 5 Sep 2023 09:48:34 -0400 Subject: [PATCH] fix: don't create tooltips on mobile --- public/src/client/chats.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/src/client/chats.js b/public/src/client/chats.js index 23744fcad6..cc8e3d7133 100644 --- a/public/src/client/chats.js +++ b/public/src/client/chats.js @@ -45,7 +45,12 @@ define('forum/chats', [ }); Chats.init = function () { - $('.chats-full [data-bs-toggle="tooltip"]').tooltip({ trigger: 'hover', container: '#content' }); + if (!utils.isMobile()) { + $('.chats-full [data-bs-toggle="tooltip"]').tooltip({ + trigger: 'hover', + container: '#content', + }); + } socket.emit('modules.chats.enterPublic', ajaxify.data.publicRooms.map(r => r.roomId)); const env = utils.findBootstrapEnvironment(); chatNavWrapper = $('[component="chat/nav-wrapper"]');