feat: fix column widths in table view

This commit is contained in:
2022-12-23 11:48:48 +01:00
parent 279c4830d6
commit d411d2107d
2 changed files with 24 additions and 5 deletions

View File

@@ -14,7 +14,7 @@
<th>Actions</th>
</tr>
<tr *ngFor="let row of rows$ |async">
<td>
<td class="col small">
<a [href]="row.url">
<nb-user
size="medium"
@@ -26,9 +26,13 @@
</nb-user>
</a>
</td>
<td><span [innerHTML]="row.note"></span></td>
<td><span [innerHTML]="row.fields"></span></td>
<td>
<td class="col large">
<span [innerHTML]="row.note"></span>
</td>
<td class="col large">
<span [innerHTML]="row.fields"></span>
</td>
<td class="col medium">
<div *ngFor="let list of row.lists">
{{list.title}}
<nb-icon icon="person-remove-outline" (click)="removeAccountFromList(row.id, list.id)">
@@ -36,7 +40,7 @@
</nb-icon>
</div>
</td>
<td>
<td class="col medium">
<div class="actions">
<select class="list-select" #listSelect>
<option *ngFor="let list of lists$ | async" [value]="list.id">{{list.title}}</option>

View File

@@ -13,6 +13,21 @@ table {
td {
border: 1pt solid #101426;
}
td.col {
&.small {
min-width: 180px;
}
&.medium {
min-width: 300px;
}
&.large {
min-width: 400px;
}
max-width: calc(100vw / 3);
overflow: hidden;
text-overflow: ellipsis;
}
}
div.actions {