Skip to content

Commit

Permalink
feat: Indent subsection sequences on the course outline.
Browse files Browse the repository at this point in the history
Verified that the instructional design team would like the the `subsection` sequences indented. This will allow for visual separation of the content and provide better nesting.

I tried using bootstrap spacing https://getbootstrap.com/docs/4.3/utilities/spacing/ of `pl-5` but it was too far in for the indent and I needed to specify an exact value to align the checkmark progress with the title of the section name.

Ref: #25
  • Loading branch information
ztraboo authored and becdavid committed Jan 23, 2024
1 parent bc87d76 commit ada80e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/course-home/outline-tab/SequenceLink.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import EffortEstimate from '../../shared/effort-estimate';
import { useModel } from '../../generic/model-store';
import messages from './messages';
import './SequenceLink.scss';

function SequenceLink({
id,
Expand Down Expand Up @@ -52,7 +53,7 @@ function SequenceLink({
return (
<li>
<div className={classNames('', { 'mt-2 pt-2 border-top border-light': !first })}>
<div className="row w-100 m-0">
<div className="row w-100 m-0 sequence-indent">
<div className="col-auto p-0">
{complete ? (
<FontAwesomeIcon
Expand Down
3 changes: 3 additions & 0 deletions src/course-home/outline-tab/SequenceLink.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.sequence-indent {
padding-left: 2.75rem !important
}

0 comments on commit ada80e0

Please sign in to comment.