From dab0d61ac8fe99b30fca805a1dfd40f9a6a3027d Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sat, 17 Feb 2024 16:50:13 +0800 Subject: [PATCH] Allow double-click to refresh on Notifications page --- src/pages/notifications.jsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pages/notifications.jsx b/src/pages/notifications.jsx index ead83365..0ffc3093 100644 --- a/src/pages/notifications.jsx +++ b/src/pages/notifications.jsx @@ -285,6 +285,11 @@ function Notifications({ columnMode }) { scrollableRef.current?.scrollTo({ top: 0, behavior: 'smooth' }); } }} + onDblClick={(e) => { + if (!e.target.closest('a, button')) { + loadNotifications(true); + } + }} class={uiState === 'loading' ? 'loading' : ''} >