Skip to content

Commit

Permalink
Re-orders the title and start time of the course to be read in the pr…
Browse files Browse the repository at this point in the history
…oper order by the reader (#2503)
  • Loading branch information
annagav authored Jan 10, 2025
1 parent 97df27c commit be30de0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion frontend/public/scss/catalog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,10 @@
}

.catalog-item-description {
display: -webkit-flex;
-webkit-flex-flow: column;
flex-flow: column;
height: 85px;
display: flex;
padding: 15px;
flex-direction: column;
Expand All @@ -424,6 +428,8 @@
align-self: stretch;

.start-date-description {
-webkit-order: 1;
order: 1;
align-self: stretch;
overflow: hidden;
color: var(--grey-text, #6F7175);
Expand All @@ -435,7 +441,8 @@
}

.item-title {
height: 36px;
-webkit-order: 2;
order: 2;
align-self: stretch;
color: rgba(3, 21, 45, 0.85);
/* Add elipses after 2 lines of title text */
Expand Down
2 changes: 1 addition & 1 deletion frontend/public/src/containers/pages/CatalogPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -669,10 +669,10 @@ export class CatalogPage extends React.Component<Props> {
alt=""
/>
<div className="catalog-item-description">
<div className="item-title">{course.title}</div>
<div className="start-date-description">
{getStartDateText(course)}
</div>
<div className="item-title">{course.title}</div>
</div>
</div>
</a>
Expand Down

0 comments on commit be30de0

Please sign in to comment.