mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-28 20:28:52 +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 (
|
return (
|
||||||
<div class="deck-container" ref={scrollableRef}>
|
<div class="deck-container" ref={scrollableRef}>
|
||||||
<div class={`timeline-deck deck ${onlyMentions ? 'only-mentions' : ''}`}>
|
<div class={`timeline-deck deck ${onlyMentions ? 'only-mentions' : ''}`}>
|
||||||
<header>
|
<header
|
||||||
|
onClick={() => {
|
||||||
|
scrollableRef.current?.scrollTo({ top: 0, behavior: 'smooth' });
|
||||||
|
}}
|
||||||
|
>
|
||||||
<div class="header-side">
|
<div class="header-side">
|
||||||
<a href="#" class="button plain">
|
<a href="#" class="button plain">
|
||||||
<Icon icon="home" size="l" />
|
<Icon icon="home" size="l" />
|
||||||
|
|
Loading…
Reference in a new issue