Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

teams/enterprises: added margin for long names (fixes #8028) #8029

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/app/teams/teams.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
<ng-container matColumnDef="doc.name">
<mat-header-cell *matHeaderCellDef mat-sort-header="doc.name" i18n>Name</mat-header-cell>
<mat-cell *matCellDef="let element">
<h3>
{{element.doc.name}}
<h3 class="team-name">
{{element.doc.name.length > 200 ? element.doc.name.slice(0, 200) + '...': element.doc.name }}
<mat-icon class="margin-lr-3" i18n-title title="{{ mode === 'enterprise' ? 'Joined Enterprise' : 'Joined Team' }}" [inline]="true" *ngIf="element.userStatus=='member'">check</mat-icon>
</h3>
</mat-cell>
Expand Down
5 changes: 5 additions & 0 deletions src/app/teams/teams.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
justify-content: center;
}

.team-name{
max-width: 95%;
overflow: hidden;
}

@media screen and (max-width: #{$screen-sm}) {
mat-cell button {
min-width: 0;
Expand Down
Loading