Skip to content

Commit efb4820

Browse files
committed
Add sorting to material table
1 parent 4e2a97d commit efb4820

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

src/app/quiz/quiz-question/quiz-question.component.scss

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
table {
22
width: 100%;
3+
}
34

4-
.mat-sort-header-container {
5-
display: flex;
6-
justify-content: center;
7-
}
5+
::ng-deep .mat-sort-header-container {
6+
justify-content: center;
7+
}
8+
9+
th.mat-header-cell {
10+
font-size: 16px;
11+
text-decoration: underline;
12+
color: #fff;
813
}
914

1015
td, th {
@@ -26,19 +31,19 @@ mat-list {
2631
border-bottom: 1px solid rgba(255, 255, 255, 0.12);
2732

2833
span:nth-of-type(1) {
29-
width: 20%;
34+
width: 40%;
3035
}
3136

3237
span:nth-of-type(2) {
33-
width: 15%;
38+
width: 20%;
3439
}
3540

3641
span:nth-of-type(3) {
37-
width: 15%;
42+
width: 20%;
3843
}
3944

4045
span:nth-of-type(4) {
41-
width: 15%;
46+
width: 20%;
4247
}
4348
}
4449
}

0 commit comments

Comments
 (0)