diff options
author | Jakub Mendyk <jakubmendyk.szkola+git@gmail.com> | 2018-08-29 01:19:58 +0200 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2019-07-21 20:57:42 +0200 |
commit | c614abb95dcb226edd60df52bd987adbe83d7b30 (patch) | |
tree | 2982c53f11064faead88c702d9f94acddabf47e0 /app/javascript/flavours/glitch | |
parent | b294b5956bf15c8c18c75d01c57ddfeb07270ff7 (diff) |
[Glitch] Fix followers/follows layout issues from #8418
Port ceed1ebe5b308a95f9c167c93d3bc0976937fb58 to glitch-soc Signed-off-by: Thibaut Girka <thib@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch')
-rw-r--r-- | app/javascript/flavours/glitch/features/followers/index.js | 5 | ||||
-rw-r--r-- | app/javascript/flavours/glitch/features/following/index.js | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/app/javascript/flavours/glitch/features/followers/index.js b/app/javascript/flavours/glitch/features/followers/index.js index 0f50b727d..b0a9efc21 100644 --- a/app/javascript/flavours/glitch/features/followers/index.js +++ b/app/javascript/flavours/glitch/features/followers/index.js @@ -98,13 +98,14 @@ export default class Followers extends ImmutablePureComponent { <Column ref={this.setRef}> <ProfileColumnHeader onClick={this.handleHeaderClick} /> - <HeaderContainer accountId={this.props.params.accountId} hideTabs /> - <ScrollableList scrollKey='followers' hasMore={hasMore} onLoadMore={this.handleLoadMore} shouldUpdateScroll={this.shouldUpdateScroll} + prepend={<HeaderContainer accountId={this.props.params.accountId} hideTabs />} + alwaysPrepend + alwaysShowScrollbar emptyMessage={emptyMessage} > {accountIds.map(id => diff --git a/app/javascript/flavours/glitch/features/following/index.js b/app/javascript/flavours/glitch/features/following/index.js index b69358890..baf3730d9 100644 --- a/app/javascript/flavours/glitch/features/following/index.js +++ b/app/javascript/flavours/glitch/features/following/index.js @@ -93,13 +93,14 @@ export default class Following extends ImmutablePureComponent { <Column ref={this.setRef}> <ProfileColumnHeader onClick={this.handleHeaderClick} /> - <HeaderContainer accountId={this.props.params.accountId} hideTabs /> - <ScrollableList scrollKey='following' hasMore={hasMore} onLoadMore={this.handleLoadMore} shouldUpdateScroll={this.shouldUpdateScroll} + prepend={<HeaderContainer accountId={this.props.params.accountId} hideTabs />} + alwaysPrepend + alwaysShowScrollbar emptyMessage={emptyMessage} > {accountIds.map(id => |