Skip to content

Commit

Permalink
Merge pull request #11801 from notbakaneko/feature/discussions-guest-…
Browse files Browse the repository at this point in the history
…mapper-wrapping

Always wrap Beatmap Discussion guest mapper list
  • Loading branch information
nanaya authored Jan 20, 2025
2 parents d9f4860 + 28b5d4e commit 832081c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
1 change: 1 addition & 0 deletions resources/css/bem/beatmap-discussions-header-top.less
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
grid-area: owners;
font-size: @font-size--title-small;
padding: 10px 10px 0;
overflow-wrap: anywhere;
}

&__stats {
Expand Down
14 changes: 6 additions & 8 deletions resources/js/beatmap-discussions/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,12 @@ export class Header extends React.Component<Props> {
<div className={`${bn}__beatmap-stats`}>
<div className={`${bn}__owners`}>
{hasGuestOwners(this.currentBeatmap, this.beatmapset) && (
<span>
<StringWithComponent
mappings={{
user: <UserLinkList users={this.currentBeatmap.owners ?? []} />,
}}
pattern={trans('beatmaps.discussions.guest')}
/>
</span>
<StringWithComponent
mappings={{
user: <UserLinkList users={this.currentBeatmap.owners ?? []} />,
}}
pattern={trans('beatmaps.discussions.guest')}
/>
)}
</div>
<div className={`${bn}__basic-stats`}>
Expand Down

0 comments on commit 832081c

Please sign in to comment.