Skip to content

Commit

Permalink
Update Dialog panel class
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcibotari committed Nov 22, 2024
1 parent b73047b commit 8befc44
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion functions/src/utils/security-utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AuthData } from 'firebase-functions/lib/common/providers/https';
import { ROLE_ADMIN, ROLE_CUSTOM } from '../config';
import { UserPermission } from '../models/user.model';
import { UserPermission } from '../models';

/**
* Check roles of authenticated user
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ <h2 mat-dialog-title>Assets</h2>
</mat-cell>
</ng-container>
<ng-container matColumnDef="name">
<mat-header-cell *matHeaderCellDef mat-sort-header="name"> Name</mat-header-cell>
<mat-header-cell *matHeaderCellDef> Name</mat-header-cell>
<mat-cell *matCellDef="let element">
<div>
<div class="break-all">{{ element.name }}{{ element.extension }}</div>
Expand All @@ -65,21 +65,21 @@ <h2 mat-dialog-title>Assets</h2>
</mat-cell>
</ng-container>
<ng-container matColumnDef="size">
<mat-header-cell *matHeaderCellDef mat-sort-header="size"> Size</mat-header-cell>
<mat-header-cell *matHeaderCellDef> Size</mat-header-cell>
<mat-cell *matCellDef="let element"> {{ element.size | digitalStore }}</mat-cell>
</ng-container>
<ng-container matColumnDef="type">
<mat-header-cell *matHeaderCellDef mat-sort-header="type"> Type</mat-header-cell>
<mat-header-cell *matHeaderCellDef> Type</mat-header-cell>
<mat-cell *matCellDef="let element"> {{ element.type }}</mat-cell>
</ng-container>
<ng-container matColumnDef="updatedAt">
<mat-header-cell *matHeaderCellDef mat-sort-header="updatedAt"> Updated At</mat-header-cell>
<mat-header-cell *matHeaderCellDef> Updated At</mat-header-cell>
<mat-cell *matCellDef="let element" [matTooltip]="element.updatedAt?.toDate() | date: 'medium'">
{{ element.updatedAt?.toDate() | date: 'mediumDate' }}
</mat-cell>
</ng-container>

<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
<mat-header-row *matHeaderRowDef="displayedColumns; sticky: true"></mat-header-row>
<mat-row *matRowDef="let row; columns: displayedColumns" (click)="onRowSelect(row)"></mat-row>
</mat-table>
</mat-dialog-content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ table {
width: 100%;
}

mat-dialog-content {
@apply pt-0 #{!important};
}

mat-cell {
cursor: pointer;
&.mat-column-preview {
Expand Down

0 comments on commit 8befc44

Please sign in to comment.