Skip to content

Commit 2939dff

Browse files
committed
Remove extra whitespace
There was a space between @ and if which broke the code.
1 parent 1667d91 commit 2939dff

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

frontend/src/app/questions/questions.component.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
<p-toast />
99
} @else {
1010
<ng-container>
11-
<div [ngStyle]="isAdmin ? {'max-width': '1150px', 'margin': '0 auto'} : {'max-width': '900px', 'margin': '0 auto'}">
11+
<div
12+
[ngStyle]="
13+
isAdmin ? { 'max-width': '1150px', margin: '0 auto' } : { 'max-width': '900px', margin: '0 auto' }
14+
">
1215
@if (isAdmin) {
1316
<p-toolbar styleClass="mt-4 mb-2 gap-2">
1417
<div class="p-justify-end">
@@ -18,7 +21,7 @@
1821
[outlined]="true"
1922
label="New"
2023
class="mr-2"
21-
(onClick)="openNewQuestion()"/>
24+
(onClick)="openNewQuestion()" />
2225
<p-button
2326
icon="pi pi-trash"
2427
severity="danger"
@@ -28,7 +31,7 @@
2831
</div>
2932
</p-toolbar>
3033
} @else {
31-
<div style="height: 50px;"></div>
34+
<div style="height: 50px"></div>
3235
}
3336
<div class="table-container">
3437
<p-table
@@ -67,13 +70,14 @@ <h3 class="m-0">Questions</h3>
6770
</ng-template>
6871
<ng-template pTemplate="body" let-question>
6972
<tr (click)="onRowSelect(question)">
70-
@ if (isAdmin) {
73+
@if (isAdmin) {
7174
<td><p-tableCheckbox [value]="question" /></td>
7275
<td>{{ question.id }}</td>
7376
<td>{{ question.title }}</td>
7477
<td>{{ question.topics.join(', ') }}</td>
7578
<td>{{ question.difficulty }}</td>
76-
<td><p-button
79+
<td>
80+
<p-button
7781
label="Edit"
7882
severity="primary"
7983
icon="pi pi-file-edit"
@@ -118,4 +122,4 @@ <h4>{{ clickedOnQuestion?.title }}</h4>
118122
<p style="white-space: pre-wrap">{{ clickedOnQuestion?.description }}</p>
119123
</div>
120124
</div>
121-
</div>
125+
</div>

0 commit comments

Comments
 (0)