Skip to content

Commit d375318

Browse files
committed
Improve borders on track-stops
1 parent cb53458 commit d375318

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/components/tracks/OverviewTimeline.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const ChapterSection = memo(
8080
return (
8181
<ul className={css.chapterList}>
8282
{chapter.title && (
83-
<li>
83+
<li className={css.chapterListItem}>
8484
<button
8585
className={cn(
8686
css.chapterTitle,
@@ -112,7 +112,7 @@ const ChapterSection = memo(
112112
return (
113113
<li
114114
key={`${video.slug}-${partIndex}`}
115-
className={cn(css.videoItem, {
115+
className={cn(css.videoItem, css.chapterListItem, {
116116
[css.seen]: hasSeenPart,
117117
[css.last]: isLastVideo && partIndex === currentPartIndex
118118
})}>
@@ -127,7 +127,7 @@ const ChapterSection = memo(
127127
) : (
128128
<li
129129
key={video.slug}
130-
className={cn(css.videoItem, {
130+
className={cn(css.videoItem, css.chapterListItem, {
131131
[css.seen]: hasSeenVideo,
132132
[css.last]: isLastVideo
133133
})}>

src/components/tracks/OverviewTimeline.module.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@
3636
padding: 0;
3737
}
3838

39+
.chapterListItem {
40+
/*
41+
CSS 'border' interferes with the track stop lines, so we use a box shadow that matches 'border-red-light'.
42+
*/
43+
box-shadow: 0 -1px 0 rgba(255, 0, 0, 0.1);
44+
}
45+
3946
.chapterTitle {
4047
position: relative;
4148
height: var(--baseline);

0 commit comments

Comments
 (0)