Skip to content

Commit

Permalink
Fix back button appearing in column header unexpectedly in web UI (ma…
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron authored and lutoma committed Mar 19, 2024
1 parent 310131b commit 1af47f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/javascript/mastodon/components/column_header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class ColumnHeader extends PureComponent {
<h1 className={buttonClassName}>
{hasTitle && (
<>
{backButton}
{showBackButton && backButton}

<button onClick={this.handleTitleClick} className='column-header__title'>
{!showBackButton && <Icon id={icon} icon={iconComponent} className='column-header__icon' />}
Expand All @@ -208,7 +208,7 @@ class ColumnHeader extends PureComponent {
</>
)}

{!hasTitle && backButton}
{!hasTitle && showBackButton && backButton}

<div className='column-header__buttons'>
{extraButton}
Expand Down

0 comments on commit 1af47f8

Please sign in to comment.