Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
Fix blocking heavy use banner on mobile (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
piazzatron committed Oct 25, 2020
1 parent c7349f9 commit 0c4cb73
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion packages/web/src/containers/notice/Notice.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
}

.content {
pointer-events: all;
pointer-events: none;
margin: 0 20px;
position: relative;
background: var(--page-header-gradient);
Expand All @@ -42,6 +42,10 @@
font-weight: var(--font-bold);
}

.contentShow {
pointer-events: all;
}

.iconRemove {
cursor: pointer;
position: absolute;
Expand Down
6 changes: 5 additions & 1 deletion packages/web/src/containers/notice/Notice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ const Notice = ({ shouldPadTop }: { shouldPadTop: boolean }) => {
[styles.shouldPadTop]: shouldPadTop
})}
>
<div className={styles.content}>
<div
className={cn(styles.content, {
[styles.contentShow]: isVisible
})}
>
<IconRemove className={styles.iconRemove} onClick={hide} />
{noticeText}
</div>
Expand Down

0 comments on commit 0c4cb73

Please sign in to comment.