mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-25 10:45:41 +03:00
Scroll-to-top for Notifications
This commit is contained in:
parent
c6b9e3fc78
commit
8eec844781
1 changed files with 5 additions and 1 deletions
|
@ -292,7 +292,11 @@ function Notifications() {
|
|||
return (
|
||||
<div class="deck-container" ref={scrollableRef}>
|
||||
<div class={`timeline-deck deck ${onlyMentions ? 'only-mentions' : ''}`}>
|
||||
<header>
|
||||
<header
|
||||
onClick={() => {
|
||||
scrollableRef.current?.scrollTo({ top: 0, behavior: 'smooth' });
|
||||
}}
|
||||
>
|
||||
<div class="header-side">
|
||||
<a href="#" class="button plain">
|
||||
<Icon icon="home" size="l" />
|
||||
|
|
Loading…
Reference in a new issue