Skip to content

Commit

Permalink
refactor: Challenges and learning-paths
Browse files Browse the repository at this point in the history
Signed-off-by: rishabhsharma1997 <[email protected]>
  • Loading branch information
rishabhsharma1997 committed Jun 21, 2024
1 parent 7952cce commit f091357
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/custom/LearningCard/LearningCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const LearningCard: React.FC<Props> = ({ tutorial, path, courseCount, courseType
<CardSubdata className="card-subdata">
<p>
{courseCount} {courseType}
{courseCount === 1 ? '' : 's'}
{courseCount > 1 ? 's' : ''}
</p>
</CardSubdata>
<CardImage>
Expand Down
9 changes: 1 addition & 8 deletions src/custom/TOCChapter/style.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const TOCWrapper = styled('div')(({ theme }) => ({
MozPaddingStart: '2.65rem',
'&::after': {
position: 'absolute',
inset: '1rem auto 1rem 27px',
inset: '1rem auto 1rem 1.7rem',
width: 'auto',
height: 'auto',
borderLeft: `1px solid rgba(177, 182, 184, 0.25)`,
Expand Down Expand Up @@ -77,12 +77,5 @@ export const TOCWrapper = styled('div')(({ theme }) => ({
}
}
}
},
'@media(max-width: 1200px)': {
'.toc-list ul': {
'&::after': {
inset: '1rem auto 1rem 24px'
}
}
}
}));

0 comments on commit f091357

Please sign in to comment.