Allow double-click to refresh on Notifications page

pull/422/head
Lim Chee Aun 2024-02-17 16:50:13 +08:00
rodzic 14b92f3f98
commit dab0d61ac8
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -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">