Skip to content

Commit

Permalink
Add word-break style to keep width in account-detail view (#4270)
Browse files Browse the repository at this point in the history
  • Loading branch information
reiterl authored Oct 28, 2024
1 parent 8c1431d commit 6bbd112
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ <h2>{{ 'Committees and meetings' | translate }}</h2>
@for (row of tableData | keyvalue: tableDataAscOrderCompare; track row; let lastLine = $last) {
<!-- Handle committees without meetings-->
@if (!getNumberOfKeys(row.value.meetings)) {
<tr [ngClass]="getCellClass(true, true, lastLine)">
<tr class="word-break" [ngClass]="getCellClass(true, true, lastLine)">
<td>
<a [routerLink]="'/committees/' + row.key + ''">{{ row.value.committee_name }}</a>
</td>
Expand All @@ -184,7 +184,7 @@ <h2>{{ 'Committees and meetings' | translate }}</h2>
let isFirst = $first;
let isLast = $last
) {
<tr [ngClass]="getCellClass(true, true, lastLine)">
<tr class="word-break" [ngClass]="getCellClass(true, true, lastLine)">
@if (isFirst) {
<td [attr.rowspan]="getNumberOfKeys(row.value.meetings)">
<a [routerLink]="'/committees/' + row.key + ''">
Expand All @@ -204,12 +204,12 @@ <h2>{{ 'Committees and meetings' | translate }}</h2>
}
</td>
}
<td [ngClass]="getCellClass(false, isLast, lastLine)">
<td class="word-break" [ngClass]="getCellClass(false, isLast, lastLine)">
<a [routerLink]="'/' + meeting_row.key + ''">
{{ meeting_row.value.meeting_name }}
</a>
</td>
<td [ngClass]="getCellClass(false, isLast, lastLine)">
<td class="word-break" [ngClass]="getCellClass(false, isLast, lastLine)">
@for (group of meeting_row.value.group_names; track group; let lastGroup = $last) {
<span>{{ group }}{{ !lastGroup ? ', ' : '' }}</span>
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@ os-user-detail-view h2 {
.committee-underline {
border-bottom: 1px solid rgba(153, 153, 153, 0.5);
}

.word-break {
word-break: break-word;
}
}

0 comments on commit 6bbd112

Please sign in to comment.