Allow double-click to refresh on Notifications page

This commit is contained in:
Lim Chee Aun 2024-02-17 16:50:13 +08:00
parent 14b92f3f98
commit dab0d61ac8

View file

@ -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' : ''}
>
<div class="header-grid">