]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix followers/follows layout issues from #8418
authorJakub Mendyk <jakubmendyk.szkola+git@gmail.com>
Tue, 28 Aug 2018 23:19:58 +0000 (01:19 +0200)
committerThibG <thib@sitedethib.com>
Sun, 21 Jul 2019 18:57:42 +0000 (20:57 +0200)
Port ceed1ebe5b308a95f9c167c93d3bc0976937fb58 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
app/javascript/flavours/glitch/features/followers/index.js
app/javascript/flavours/glitch/features/following/index.js

index 0f50b727d3a1a7853a6b720f46bdfc617aef0618..b0a9efc2122cd4b6f402f317d8fc21405cbdf92c 100644 (file)
@@ -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 =>
index b6935889068cd9f20e4d31ed2619b3edf7956c8b..baf3730d94516dc410c6ac40a17d83efc0a9d307 100644 (file)
@@ -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 =>