Skip to content

Commit

Permalink
Replace fx-layout with tailwind equivalent - staff-task-list
Browse files Browse the repository at this point in the history
  • Loading branch information
caoquocvinq committed Aug 14, 2023
1 parent 514cfc0 commit ece8f99
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- The search bar template -->
<ng-template #OmnisearchTemplate let-collapsable="collapsable">
<div class="omnisearch" [ngClass]="{ expanded: showSearchOptions }">
<div fxLayout="row" fxLayoutAlign="(default) center">
<div class="flex flex-row" justify-content: flex-start align-items: center>
<button mat-icon-button aria-label="Search Icon" disabled>
<mat-icon>search</mat-icon>
</button>
Expand Down Expand Up @@ -83,7 +83,7 @@
>
<form class="search-options">
<div class="task-definition">
<div fxLayout="row" fxLayoutAlign="space-between center">
<div class="flex flex-row" justify-content: space-between align-items: center>
<mat-form-field fxFlex>
<mat-label>Task</mat-label>
<mat-select
Expand All @@ -109,7 +109,7 @@
</div>
</div>
<!--/task-definition-->
<div fxLayout="row" fxLayoutAlign="space-between center">
<div class="flex flex-row" justify-content: space-between align-items: center>
<mat-form-field fxFlex>
<mat-label>Students</mat-label>
<mat-select
Expand Down Expand Up @@ -143,7 +143,7 @@
</ng-template>

<!-- Actual task-inbox -->
<div class="task-inbox" [ngClass]="isNarrow ? 'narrow-width' : 'full-width'" div fxLayout="column" fxLayoutAlign="none">
<div class="task-inbox" [ngClass]="isNarrow ? 'narrow-width' : 'full-width'">
<div class="openSearchDialog" [hidden]="!isNarrow">
<button mat-icon-button (click)="openDialog()" aria-label="Seach Button">
<mat-icon>search</mat-icon>
Expand Down Expand Up @@ -179,8 +179,10 @@
<div
(click)="setSelectedTask(task)"
class="inbox-entry"
fxLayout="row"
fxLayoutAlign="start center"
class="flex flex-row"
justify-content:flex-start
align-items:center
align-content:center
[ngClass]="{ hover: task.hover }"
(mouseover)="task.hover = allowHover"
(mouseout)="task.hover = task.optionsOpened"
Expand All @@ -189,7 +191,7 @@
class="notification"
[ngClass]="{ active: task.numNewComments <= 0 || task.plagiarismDetected() }"
></span>
<user-icon fxFlexAlign="center" [user]="task.project.student" [size]="30"> </user-icon>
<user-icon justify-content: center [user]="task.project.student" [size]="30"> </user-icon>
<div class="task-list-data truncate" fxFlex [hidden]="isNarrow">
<h4 class="mat-h4">{{ task.project.student.name }}</h4>
<p class="mat-small truncate">
Expand Down

0 comments on commit ece8f99

Please sign in to comment.