File tree 4 files changed +12
-13
lines changed
client/app/bundles/course/reference-timelines
4 files changed +12
-13
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 6
6
7
7
import { useAppSelector } from 'lib/hooks/store' ;
8
8
9
- import RowSpacer from '../RowSpacer' ;
10
-
11
9
import AssignableTimeline from './AssignableTimeline' ;
12
10
import AssignedTimeline from './AssignedTimeline' ;
13
11
@@ -60,8 +58,6 @@ const TimelinesStack = (props: TimeBarsProps): JSX.Element => {
60
58
/>
61
59
) ;
62
60
} ) }
63
-
64
- < RowSpacer />
65
61
</ Fragment >
66
62
) ;
67
63
} ) }
Original file line number Diff line number Diff line change 5
5
TimelineData ,
6
6
} from 'types/course/referenceTimelines' ;
7
7
8
- import RowSpacer from '../../components/RowSpacer' ;
9
8
import { getDaysFromSeconds } from '../../utils' ;
10
9
11
10
import TimelineSidebarItem from './TimelineSidebarItem' ;
@@ -27,8 +26,17 @@ const ItemsSidebar = (props: ItemsSidebarProps): JSX.Element => {
27
26
key = { item . id }
28
27
className = "flex border-0 border-b border-solid border-neutral-200"
29
28
>
30
- < div className = "w-1/2 border-0 border-r border-solid border-neutral-200 py-2 pr-2" >
31
- < Typography className = "line-clamp-2" variant = "body2" >
29
+ < div
30
+ className = { `w-1/2 border-0 border-r border-solid border-neutral-200 ${
31
+ timelines . length <= 1 ? 'flex items-center' : 'py-2'
32
+ } pr-2`}
33
+ >
34
+ < Typography
35
+ className = {
36
+ timelines . length <= 1 ? 'line-clamp-1' : 'line-clamp-2'
37
+ }
38
+ variant = "body2"
39
+ >
32
40
{ item . title }
33
41
</ Typography >
34
42
</ div >
@@ -52,8 +60,6 @@ const ItemsSidebar = (props: ItemsSidebarProps): JSX.Element => {
52
60
/>
53
61
) ;
54
62
} ) }
55
-
56
- < RowSpacer />
57
63
</ div >
58
64
</ section >
59
65
) ) }
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const TimelineSidebarItem = (props: TimelineSidebarItemProps): JSX.Element => {
19
19
20
20
return (
21
21
< div
22
- className = { `group box-content flex h-10 items-center justify-between border-0 border-b border-solid border-neutral-200 px-2 ${
22
+ className = { `group box-content flex h-10 items-center justify-between border-0 border-b border-solid border-neutral-200 px-2 last:border-b-0 ${
23
23
! assigned
24
24
? 'bg-neutral-100 text-neutral-400'
25
25
: 'text-neutral-500 hover?:bg-neutral-50'
You can’t perform that action at this time.
0 commit comments