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

fix: add a width to first column to prevent whitespace on select-data-dialog #104

Merged
merged 1 commit into from
Sep 21, 2020
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ <h1 mat-dialog-title>Select from WT External Data Catalog</h1>
<tbody *ngIf="selectedDataset">
<tr *ngFor="let elem of (folders | async).concat(files | async); index as i; trackBy:trackById"
[ngClass]="{ 'clickable': elem._modelType === 'folder', 'active': isSelected(elem, datasetsToAdd) }" (click)="toggledCheckbox($event, elem, datasetsToAdd)" (dblclick)="navigateToFolder(elem)">
<td><i class="fas fa-fw" [ngClass]="{ 'fa-folder': elem._modelType === 'folder', 'fa-file': elem._modelType === 'item' || elem._modelType === 'file' }"></i></td>
<td class="icon-column"><i class="fas fa-fw" [ngClass]="{ 'fa-folder': elem._modelType === 'folder', 'fa-file': elem._modelType === 'item' || elem._modelType === 'file' }"></i></td>
<td>{{ elem.name | truncate:65 }}</td>
<!--<td>{{ elem.size | fileSize }}</td>
<td [title]="elem.updated">{{ elem.updated | date }}</td>-->
Expand All @@ -48,7 +48,7 @@ <h1 mat-dialog-title>Select from WT External Data Catalog</h1>
</tr>
<tr *ngFor="let dataset of (datasets | async); index as i; trackBy:trackById"
[ngClass]="{ 'clickable': dataset._modelType === 'folder', 'active': isSelected(dataset, datasetsToAdd) }" (click)="toggledCheckbox($event, dataset, datasetsToAdd)" (dblclick)="navigateIntoDataset(dataset)">
<td><i class="fas fa-fw" [ngClass]="{ 'fa-folder': dataset._modelType === 'folder', 'fa-file': dataset._modelType === 'item' }"></i></td>
<td class="icon-column"><i class="fas fa-fw" [ngClass]="{ 'fa-folder': dataset._modelType === 'folder', 'fa-file': dataset._modelType === 'item' }"></i></td>
<td>{{ dataset.name | truncate:40 }}</td>
<!--<td>{{ dataset.size | fileSize }}</td>
<td [title]="dataset.updated">{{ dataset.updated | date }}</td>-->
Expand All @@ -70,7 +70,7 @@ <h1 mat-dialog-title>Select from WT External Data Catalog</h1>
</tr>
<tr *ngFor="let dataset of (addedDatasets | async); index as i; trackBy:trackById"
[ngClass]="{ 'clickable': dataset._modelType === 'folder', 'active': isSelected(dataset, datasetsToRemove) }" (click)="toggledCheckbox($event, dataset, datasetsToRemove)">
<td><i class="fas fa-fw" [ngClass]="{ 'fa-folder': dataset._modelType === 'folder', 'fa-file': dataset._modelType === 'item'}"></i></td>
<td class="icon-column"><i class="fas fa-fw" [ngClass]="{ 'fa-folder': dataset._modelType === 'folder', 'fa-file': dataset._modelType === 'item'}"></i></td>
<td>{{ dataset.name | truncate:40 }}</td>
<!--<td>{{ dataset.size | fileSize }}</td>
<td [title]="dataset.updated">{{ dataset.updated | date }}</td>-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@
.clickable {
cursor: pointer !important;
}

.icon-column {
width: 2em;
}