Skip to content
Snippets Groups Projects
Commit 7f438c92 authored by Isaac Evavold's avatar Isaac Evavold
Browse files

ROENROLL-1860 add variable credit dropdown underline

parent 8eac02d4
No related branches found
No related tags found
No related merge requests found
...@@ -80,18 +80,21 @@ ...@@ -80,18 +80,21 @@
<ng-container *ngIf="variableCreditCourses$ | async as variableCreditCourses; else loading"> <ng-container *ngIf="variableCreditCourses$ | async as variableCreditCourses; else loading">
<ng-container *ngIf="variableCreditCourses.length > 0; else noVariableCreditCourses"> <ng-container *ngIf="variableCreditCourses.length > 0; else noVariableCreditCourses">
<div class="credit-selector" *ngFor="let course of variableCreditCourses; let i = index" [formGroupName]="i"> <div class="credit-selector" *ngFor="let course of variableCreditCourses; let i = index" [formGroupName]="i">
<label> <label id="credits-range-{{ course.id }}">
{{ course.termCode | getTermDescription }}: {{ course | courseDescription }} {{ course.termCode | getTermDescription }}: {{ course | courseDescription }}
<br> <br>
<small>{{ course.title }}</small> <small>{{ course.title }}</small>
</label> </label>
<mat-select formControlName="credits"> <mat-form-field>
<mat-option <mat-label>{{ course.creditMin }}-{{ course.creditMax }} cr</mat-label>
*ngFor="let credit of course.range" <mat-select formControlName="credits" aria-labelledby="credits-range-{{ course.id }}">
[value]="credit"> <mat-option
{{ credit }} *ngFor="let credit of course.range"
</mat-option> [value]="credit">
</mat-select> {{ credit }} cr
</mat-option>
</mat-select>
</mat-form-field>
</div> </div>
</ng-container> </ng-container>
......
...@@ -34,9 +34,10 @@ ...@@ -34,9 +34,10 @@
flex-grow: 1; flex-grow: 1;
} }
mat-select { mat-form-field {
width: 48px; width: 72px;
display: block; display: block;
flex-grow: 0; flex-grow: 0;
text-align: right;
} }
} }
...@@ -114,18 +114,21 @@ ...@@ -114,18 +114,21 @@
<ng-container *ngIf="variableCreditCourses$ | async as variableCreditCourses; else loading"> <ng-container *ngIf="variableCreditCourses$ | async as variableCreditCourses; else loading">
<ng-container *ngIf="variableCreditCourses.length > 0; else noVariableCreditCourses"> <ng-container *ngIf="variableCreditCourses.length > 0; else noVariableCreditCourses">
<div class="credit-selector" *ngFor="let course of variableCreditCourses; let i = index" [formGroupName]="i"> <div class="credit-selector" *ngFor="let course of variableCreditCourses; let i = index" [formGroupName]="i">
<label> <label id="credits-range-{{ course.id }}">
{{ course.termCode | getTermDescription }}: {{ course | courseDescription }} {{ course.termCode | getTermDescription }}: {{ course | courseDescription }}
<br> <br>
<small>{{ course.title }}</small> <small>{{ course.title }}</small>
</label> </label>
<mat-select formControlName="credits"> <mat-form-field>
<mat-option <mat-label>{{ course.creditMin }}-{{ course.creditMax }} cr</mat-label>
*ngFor="let credit of course.range" <mat-select formControlName="credits" aria-labelledby="credits-range-{{ course.id }}">
[value]="credit"> <mat-option
{{ credit }} *ngFor="let credit of course.range"
</mat-option> [value]="credit">
</mat-select> {{ credit }} cr
</mat-option>
</mat-select>
</mat-form-field>
</div> </div>
</ng-container> </ng-container>
......
...@@ -34,9 +34,10 @@ ...@@ -34,9 +34,10 @@
flex-grow: 1; flex-grow: 1;
} }
mat-select { mat-form-field {
width: 48px; width: 72px;
display: block; display: block;
flex-grow: 0; flex-grow: 0;
text-align: right;
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment