Skip to content

Commit

Permalink
Add bindToDocument attribute to account columns (#63)
Browse files Browse the repository at this point in the history
Fixes scrolling to top when viewing profiles in simple UI.

Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com>
Co-authored-by: Plastikmensch <plastikmensch@users.noreply.github.com>
  • Loading branch information
neatchee and Plastikmensch committed Mar 28, 2023
1 parent 4398911 commit 580968e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Expand Up @@ -187,7 +187,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'>
Expand Down
Expand Up @@ -184,7 +184,7 @@ class AccountTimeline extends ImmutablePureComponent {
const remoteMessage = remote ? <RemoteHint url={remoteUrl} /> : null;

return (
<Column ref={this.setRef} name='account'>
<Column bindToDocument={!multiColumn} ref={this.setRef} name='account'>
<ProfileColumnHeader onClick={this.handleHeaderClick} multiColumn={multiColumn} />

<StatusList
Expand Down
Expand Up @@ -148,7 +148,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
Expand Down
Expand Up @@ -148,7 +148,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
Expand Down

0 comments on commit 580968e

Please sign in to comment.