Skip to content

Commit

Permalink
[#12280] Improve display for create course card header (#12500)
Browse files Browse the repository at this point in the history
* fix: add css for create course card header

* fix: lint indentation fixes

* fix: conditionally apply styles for add mode

* fix: update snapshots

* fix: re-add whitespaces

* fix: re-add whitespaces
  • Loading branch information
domoberzin authored Jul 5, 2023
1 parent 897a082 commit 939669d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ exports[`CourseEditFormComponent should snap when in ADD Mode and is display onl
class="card"
>
<div
class="card-header bg-primary text-white"
class="card-header bg-primary text-white add-mode"
>
<strong>
Create a new Course
Expand Down Expand Up @@ -248,7 +248,7 @@ exports[`CourseEditFormComponent should snap when in ADD Mode with default field
class="card"
>
<div
class="card-header bg-primary text-white"
class="card-header bg-primary text-white add-mode"
>
<strong>
Create a new Course
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="card">
<div class="card-header bg-primary text-white">
<div class="card-header bg-primary text-white" [ngClass]="{'add-mode': isInAddMode}">
<strong *ngIf="isInEditMode">Course</strong>
<strong *ngIf="isInAddMode">Create a new Course</strong>
<div class="card-header-btn-toolbar">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,13 @@
.fill-plain {
background-color: #EAEFF5;
}

@media (max-width: 576px) {
.add-mode {
display: flex;
flex-direction: column;
align-content: flex-start;
align-items: flex-start;
flex-wrap: wrap;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ exports[`InstructorCoursesPageComponent should snap when new course form is expa
class="card"
>
<div
class="card-header bg-primary text-white"
class="card-header bg-primary text-white add-mode"
>
<strong
style=""
Expand Down

0 comments on commit 939669d

Please sign in to comment.