mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-27 02:24:03 -05:00
Add bindToDocument
attribute to account columns
Fixes scrolling to top when viewing profiles in simple UI. Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com>
This commit is contained in:
parent
dfbf96021e
commit
0dcacea6e5
@ -200,7 +200,7 @@ class AccountGallery extends ImmutablePureComponent {
|
||||
}
|
||||
|
||||
return (
|
||||
<Column ref={this.setColumnRef}>
|
||||
<Column bindToDocument={!multiColumn} ref={this.setColumnRef}>
|
||||
<ProfileColumnHeader onClick={this.handleHeaderClick} multiColumn={multiColumn} />
|
||||
|
||||
<ScrollContainer scrollKey='account_gallery'>
|
||||
|
@ -184,7 +184,7 @@ class AccountTimeline extends ImmutablePureComponent {
|
||||
const remoteMessage = remote ? <RemoteHint url={remoteUrl} /> : null;
|
||||
|
||||
return (
|
||||
<Column ref={this.setRef}>
|
||||
<Column bindToDocument={!multiColumn} ref={this.setRef}>
|
||||
<ProfileColumnHeader onClick={this.handleHeaderClick} multiColumn={multiColumn} />
|
||||
|
||||
<StatusList
|
||||
|
@ -150,7 +150,7 @@ class Followers extends ImmutablePureComponent {
|
||||
const remoteMessage = remote ? <RemoteHint url={remoteUrl} /> : null;
|
||||
|
||||
return (
|
||||
<Column ref={this.setRef}>
|
||||
<Column bindToDocument={!multiColumn} ref={this.setRef}>
|
||||
<ProfileColumnHeader onClick={this.handleHeaderClick} multiColumn={multiColumn} />
|
||||
|
||||
<ScrollableList
|
||||
|
@ -150,7 +150,7 @@ class Following extends ImmutablePureComponent {
|
||||
const remoteMessage = remote ? <RemoteHint url={remoteUrl} /> : null;
|
||||
|
||||
return (
|
||||
<Column ref={this.setRef}>
|
||||
<Column bindToDocument={!multiColumn} ref={this.setRef}>
|
||||
<ProfileColumnHeader onClick={this.handleHeaderClick} multiColumn={multiColumn} />
|
||||
|
||||
<ScrollableList
|
||||
|
Loading…
Reference in New Issue
Block a user