File tree Expand file tree Collapse file tree 2 files changed +17
-8
lines changed
frontend/src/app/questions Expand file tree Collapse file tree 2 files changed +17
-8
lines changed Original file line number Diff line number Diff line change
1
+ .p-sortable-column {
2
+ background-color : # 181818 !important ;
3
+ }
4
+
5
+ .p-sortable-column : not (.p-highlight ): hover {
6
+ background-color : # 181818 !important ;
7
+ }
Original file line number Diff line number Diff line change 25
25
</ div >
26
26
</ p-toolbar >
27
27
< p-table
28
+ sortField ="id "
29
+ [sortOrder] ="1 "
28
30
[columns] ="cols "
29
31
[value] ="questions "
30
32
[(selection)] ="selectedQuestions "
31
33
datakey ="id "
32
- [tableStyle] ="{ 'min-width ': '50rem ' } "
34
+ [tableStyle] ="{ 'table-layout ': 'fixed ' } "
33
35
[paginator] ="true "
34
36
[rows] ="5 "
35
37
[rowsPerPageOptions] ="[5, 10, 20] "
@@ -41,13 +43,13 @@ <h3 class="m-0">Manage Questions</h3>
41
43
</ ng-template >
42
44
< ng-template pTemplate ="header " let-columns >
43
45
< tr >
44
- < th style ="width: 4rem "> < p-tableHeaderCheckbox /> </ th >
45
- < th > Id</ th >
46
- < th > Title</ th >
47
- < th > Description</ th >
48
- < th > Topics</ th >
49
- < th > Difficulty</ th >
50
- < th > </ th >
46
+ < th style ="width: 10% "> < p-tableHeaderCheckbox /> </ th >
47
+ < th pSortableColumn =" id " style =" width: 10% " > Id < p-sortIcon field =" id " /> </ th >
48
+ < th style =" width: 10% " > Title</ th >
49
+ < th style =" width: 40% " > Description</ th >
50
+ < th style =" width: 10% " > Topics</ th >
51
+ < th style =" width: 10% " > Difficulty</ th >
52
+ < th style =" width: 10% " > </ th >
51
53
</ tr >
52
54
</ ng-template >
53
55
< ng-template pTemplate ="body " let-question >
You can’t perform that action at this time.
0 commit comments