feat: fix column widths in table view
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user