Skip to content

Commit

Permalink
Remove extra whitespace
Browse files Browse the repository at this point in the history
There was a space between @ and if which broke the code.
  • Loading branch information
LimZiJia committed Nov 1, 2024
1 parent 1667d91 commit 2939dff
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions frontend/src/app/questions/questions.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
<p-toast />
} @else {
<ng-container>
<div [ngStyle]="isAdmin ? {'max-width': '1150px', 'margin': '0 auto'} : {'max-width': '900px', 'margin': '0 auto'}">
<div
[ngStyle]="
isAdmin ? { 'max-width': '1150px', margin: '0 auto' } : { 'max-width': '900px', margin: '0 auto' }
">
@if (isAdmin) {
<p-toolbar styleClass="mt-4 mb-2 gap-2">
<div class="p-justify-end">
Expand All @@ -18,7 +21,7 @@
[outlined]="true"
label="New"
class="mr-2"
(onClick)="openNewQuestion()"/>
(onClick)="openNewQuestion()" />
<p-button
icon="pi pi-trash"
severity="danger"
Expand All @@ -28,7 +31,7 @@
</div>
</p-toolbar>
} @else {
<div style="height: 50px;"></div>
<div style="height: 50px"></div>
}
<div class="table-container">
<p-table
Expand Down Expand Up @@ -67,13 +70,14 @@ <h3 class="m-0">Questions</h3>
</ng-template>
<ng-template pTemplate="body" let-question>
<tr (click)="onRowSelect(question)">
@ if (isAdmin) {
@if (isAdmin) {
<td><p-tableCheckbox [value]="question" /></td>
<td>{{ question.id }}</td>
<td>{{ question.title }}</td>
<td>{{ question.topics.join(', ') }}</td>
<td>{{ question.difficulty }}</td>
<td><p-button
<td>
<p-button
label="Edit"
severity="primary"
icon="pi pi-file-edit"
Expand Down Expand Up @@ -118,4 +122,4 @@ <h4>{{ clickedOnQuestion?.title }}</h4>
<p style="white-space: pre-wrap">{{ clickedOnQuestion?.description }}</p>
</div>
</div>
</div>
</div>

0 comments on commit 2939dff

Please sign in to comment.