Skip to content

Commit dc5357b

Browse files
committed
feat: add class table-small-width
1 parent c170c9d commit dc5357b

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

src/app/component/matrix/matrix.component.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
margin: 20px;
1212
}
1313

14-
15-
1614
.mat-cell{
1715
padding: 20px;
1816
width: 12.5%;
@@ -28,7 +26,7 @@
2826
font-size: 16px;
2927
font-weight: bold;
3028
}
31-
.cdk-column-SubDimension,.cdk-column-Dimension{
29+
.table-small-width{
3230
width: 5%;
3331
max-width: 9%;
3432
}

src/app/component/matrix/matrix.component.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
class="mat-elevation-z8 matrix-table">
3636
<!-- Dimension Column -->
3737
<ng-container matColumnDef="Dimension">
38-
<th mat-header-cell *matHeaderCellDef>Dimension</th>
39-
<td mat-cell *matCellDef="let element">
38+
<th mat-header-cell *matHeaderCellDef class="table-small-width">Dimension</th>
39+
<td mat-cell *matCellDef="let element" class="table-small-width">
4040
<img
4141
src="assets/images/{{ element.Dimension }}.png"
4242
height="40px"
@@ -47,8 +47,8 @@
4747

4848
<!-- Sub Dimension Column -->
4949
<ng-container matColumnDef="SubDimension">
50-
<th mat-header-cell *matHeaderCellDef>Sub-Dimension</th>
51-
<td mat-cell *matCellDef="let element">{{ element.SubDimension }}</td>
50+
<th mat-header-cell *matHeaderCellDef class="table-small-width">Sub-Dimension</th>
51+
<td mat-cell *matCellDef="let element" class="table-small-width">{{ element.SubDimension }}</td>
5252
</ng-container>
5353

5454
<div *ngFor="let lvl of lvlColumn; index as i">

0 commit comments

Comments
 (0)