Skip to content

Commit

Permalink
fix: breadcrumb navigation css
Browse files Browse the repository at this point in the history
  • Loading branch information
navinkarkera committed Nov 6, 2023
1 parent 1c025f0 commit ffaa7e6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
7 changes: 1 addition & 6 deletions src/courseware/course/CourseBreadcrumbs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,7 @@ const CourseBreadcrumb = ({
<li className="col-auto p-0 mx-2 text-primary-500 text-truncate text-nowrap" role="presentation" aria-hidden>/</li>
)}

<li style={{
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
}}
>
<li className="reactive-crumbs">
{ getConfig().ENABLE_JUMPNAV !== 'true' || content.length < 2 || !isStaff
? (
<Link
Expand Down
12 changes: 12 additions & 0 deletions src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,18 @@
}
}

.reactive-crumbs {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
&:hover,
&:focus,
&:focus-within,
&:active {
overflow: visible;
}
}

.raised-card {
border: 0 !important;
box-shadow: 0 .0625rem .125rem rgba(0, 0, 0, .2) !important;
Expand Down

0 comments on commit ffaa7e6

Please sign in to comment.