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:
Plastikmensch 2023-02-16 04:23:41 +01:00
parent dfbf96021e
commit 0dcacea6e5
No known key found for this signature in database
GPG Key ID: 96381D586F4A6077
4 changed files with 4 additions and 4 deletions

View File

@ -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'>

View File

@ -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

View File

@ -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

View File

@ -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