]> cat aescling's git repositories - mastodon.git/commitdiff
Apply scroll changes to Bookmark column
authorThibaut Girka <thib@sitedethib.com>
Sat, 5 Oct 2019 20:41:49 +0000 (22:41 +0200)
committerThibaut Girka <thib@sitedethib.com>
Sat, 5 Oct 2019 22:32:06 +0000 (00:32 +0200)
app/javascript/flavours/glitch/features/bookmarked_statuses/index.js

index 7d550e3620ff5104d6c596be6e7f89ad4137f8db..58b9e6396fdc16410314e3dc617ab41b75ade55f 100644 (file)
@@ -73,7 +73,7 @@ class Bookmarks extends ImmutablePureComponent {
     const emptyMessage = <FormattedMessage id='empty_column.bookmarked_statuses' defaultMessage="You don't have any bookmarked toots yet. When you bookmark one, it will show up here." />;
 
     return (
-      <Column ref={this.setRef} name='bookmarks'>
+      <Column bindToDocument={!multiColumn} ref={this.setRef} name='bookmarks'>
         <ColumnHeader
           icon='bookmark'
           title={intl.formatMessage(messages.heading)}
@@ -93,6 +93,7 @@ class Bookmarks extends ImmutablePureComponent {
           isLoading={isLoading}
           onLoadMore={this.handleLoadMore}
           emptyMessage={emptyMessage}
+          bindToDocument={!multiColumn}
         />
       </Column>
     );