Skip to content

Commit 84e244e

Browse files
authored
Merge pull request #11962 from nanaya/team-name-overflow
Fix overflowing team and username
2 parents 965ee3e + 5f597d5 commit 84e244e

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

resources/css/bem/profile-info.less

+3-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@
103103
&__flag {
104104
.link-plain();
105105
.link-white();
106-
display: flex;
106+
display: grid;
107+
grid-template-columns: auto 1fr;
107108
gap: 4px;
108109
align-items: center;
109110
}
@@ -175,6 +176,7 @@
175176
flex-direction: column;
176177
align-items: flex-start;
177178
flex: 1;
179+
min-width: 0;
178180
}
179181

180182
&__level {

resources/js/profile-page/cover.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export default class Cover extends React.Component<Props> {
9898
href={route('teams.show', { team: this.props.user.team.id })}
9999
>
100100
<FlagTeam team={this.props.user.team} />
101-
<span className='profile-info__flag-text'>{this.props.user.team.name}</span>
101+
<span className='profile-info__flag-text u-ellipsis-overflow'>{this.props.user.team.name}</span>
102102
</a>
103103
}
104104
<div className='profile-info__icons profile-info__icons--flag-inline'>

resources/views/teams/show.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class="profile-info__bg profile-info__bg--team"
4747
</div>
4848
<div class="profile-info__info">
4949
<h1 class="profile-info__name">
50-
{{ $team->name }}
50+
<span class="u-ellipsis-overflow">{{ $team->name }}</span>
5151
</h1>
5252
<div class="profile-info__flags">
5353
<p class="profile-info__flag">

0 commit comments

Comments
 (0)