mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-17 07:41:35 +03:00
Fix more bugs from learnings
This commit is contained in:
parent
bc7ac30e74
commit
f9794c1cd5
1 changed files with 5 additions and 7 deletions
|
@ -145,17 +145,15 @@ function Notifications() {
|
|||
<div class={`timeline-deck deck ${onlyMentions ? 'only-mentions' : ''}`}>
|
||||
<header
|
||||
hidden={hiddenUI}
|
||||
onClick={() => {
|
||||
scrollableRef.current?.scrollTo({ top: 0, behavior: 'smooth' });
|
||||
onClick={(e) => {
|
||||
if (!e.target.closest('a, button')) {
|
||||
scrollableRef.current?.scrollTo({ top: 0, behavior: 'smooth' });
|
||||
}
|
||||
}}
|
||||
>
|
||||
<div class="header-grid">
|
||||
<div class="header-side">
|
||||
<Menu
|
||||
portal={{
|
||||
target: scrollableRef.current,
|
||||
}}
|
||||
/>
|
||||
<Menu />
|
||||
<Link to="/" class="button plain">
|
||||
<Icon icon="home" size="l" />
|
||||
</Link>
|
||||
|
|
Loading…
Add table
Reference in a new issue