Skip to content

Commit

Permalink
refactor: changed positioning of back-to-top button
Browse files Browse the repository at this point in the history
  • Loading branch information
kKaskak committed Nov 17, 2023
1 parent 7a0525d commit 05e0159
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/routes/MetaDetails/StreamsList/StreamsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,6 @@ const StreamsList = ({ className, video, ...props }) => {
null
}
</div>
<div className={classnames(styles['to-top-wrapper'], showBackToTop ? styles['active'] : null)} onClick={scrollToTop}>
<Icon className={styles['icon']} name={'chevron-up'} />
<div className={styles['label']}>Back to Top</div>
</div>
<div className={styles['streams-container']} ref={streamsContainerRef}>
{filteredStreams.map((stream, index) => (
<Stream
Expand Down Expand Up @@ -188,6 +184,10 @@ const StreamsList = ({ className, video, ...props }) => {
</div>
</React.Fragment>
}
<div className={classnames(styles['to-top-wrapper'], showBackToTop ? styles['active'] : null)} onClick={scrollToTop}>
<Icon className={styles['icon']} name={'chevron-up'} />
<div className={styles['label']}>Back to Top</div>
</div>
{
countLoadingAddons > 0 ?
<div className={styles['addons-loading-container']}>
Expand Down

0 comments on commit 05e0159

Please sign in to comment.