Skip to content

Commit be30de0

Browse files
authored
Re-orders the title and start time of the course to be read in the proper order by the reader (#2503)
1 parent 97df27c commit be30de0

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

frontend/public/scss/catalog.scss

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,10 @@
416416
}
417417

418418
.catalog-item-description {
419+
display: -webkit-flex;
420+
-webkit-flex-flow: column;
421+
flex-flow: column;
422+
height: 85px;
419423
display: flex;
420424
padding: 15px;
421425
flex-direction: column;
@@ -424,6 +428,8 @@
424428
align-self: stretch;
425429

426430
.start-date-description {
431+
-webkit-order: 1;
432+
order: 1;
427433
align-self: stretch;
428434
overflow: hidden;
429435
color: var(--grey-text, #6F7175);
@@ -435,7 +441,8 @@
435441
}
436442

437443
.item-title {
438-
height: 36px;
444+
-webkit-order: 2;
445+
order: 2;
439446
align-self: stretch;
440447
color: rgba(3, 21, 45, 0.85);
441448
/* Add elipses after 2 lines of title text */

frontend/public/src/containers/pages/CatalogPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,10 +669,10 @@ export class CatalogPage extends React.Component<Props> {
669669
alt=""
670670
/>
671671
<div className="catalog-item-description">
672+
<div className="item-title">{course.title}</div>
672673
<div className="start-date-description">
673674
{getStartDateText(course)}
674675
</div>
675-
<div className="item-title">{course.title}</div>
676676
</div>
677677
</div>
678678
</a>

0 commit comments

Comments
 (0)