about summary refs log tree commit diff
path: root/app/javascript/flavours
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-10-03 09:15:00 +0200
committerClaire <claire.github-309c@sitedethib.com>2022-10-03 09:54:24 +0200
commitb76cef6212a84cb9fd4ce241aaf3aeab5e1f07ac (patch)
tree41a186dde43165fd38592f0ad7df9419bbbab596 /app/javascript/flavours
parent2aafdd0efb3fa0bf067e0b08a627a462793f296b (diff)
Fix clicking List timeline header not scrolling to top in single-column
Diffstat (limited to 'app/javascript/flavours')
-rw-r--r--app/javascript/flavours/glitch/features/list_timeline/index.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/javascript/flavours/glitch/features/list_timeline/index.js b/app/javascript/flavours/glitch/features/list_timeline/index.js
index 9e231aab7..08347446b 100644
--- a/app/javascript/flavours/glitch/features/list_timeline/index.js
+++ b/app/javascript/flavours/glitch/features/list_timeline/index.js
@@ -165,7 +165,7 @@ class ListTimeline extends React.PureComponent {
     }
 
     return (
-      <Column ref={this.setRef} label={title}>
+      <Column bindToDocument={!multiColumn} ref={this.setRef} label={title}>
         <ColumnHeader
           icon='list-ul'
           active={hasUnread}
@@ -175,7 +175,6 @@ class ListTimeline extends React.PureComponent {
           onClick={this.handleHeaderClick}
           pinned={pinned}
           multiColumn={multiColumn}
-          bindToDocument={!multiColumn}
         >
           <div className='column-settings__row column-header__links'>
             <button className='text-btn column-header__setting-btn' tabIndex='0' onClick={this.handleEditClick}>