File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
<div data-test-comment-list {{ did-update this.loadComments @courseStage }} >
2
2
<CoursePage::CommentTimelineItem @author ={{ this.currentUser }} >
3
- <div class =" shadow-sm rounded border border-gray-300 dark:border-white/10 w-full mb-4" >
3
+ <div class =" shadow-sm rounded border border-gray-300 dark:border-white/10 w-full min-w-0 mb-4" >
4
4
{{! TODO: Pass in language here so that users can choose whether their comment is language-specific }}
5
5
<CommentForm @target ={{ @courseStage }} @commentModelType =" course-stage-comment" class =" rounded" />
6
6
</div >
14
14
{{ else }}
15
15
{{ #each this.sortedComments key =" id" as |comment |}}
16
16
<CoursePage::CommentTimelineItem @author ={{ comment.user }} >
17
- <div class =" shadow-sm rounded border border-gray-300 dark:border-white/10 w-full mb-4" >
17
+ <div class =" shadow-sm rounded border border-gray-300 dark:border-white/10 w-full min-w-0 mb-4" >
18
18
{{! @glint -expect-error Not ts-ified yet }}
19
19
<CommentCard @comment ={{ comment }} />
20
20
</div >
42
42
{{ #if this.rejectedCommentsAreExpanded }}
43
43
{{ #each this.rejectedComments key =" id" as |comment |}}
44
44
<CoursePage::CommentTimelineItem @author ={{ comment.user }} >
45
- <div class =" shadow-sm rounded border border-gray-300 dark:border-white/10 w-full mb-4" >
45
+ <div class =" shadow-sm rounded border border-gray-300 dark:border-white/10 w-full min-w-0 mb-4" >
46
46
{{! @glint -expect-error Not ts-ified yet }}
47
47
<CommentCard @comment ={{ comment }} />
48
48
</div >
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export default class HeadDataService extends Service {
7
7
@service declare router : RouterService ;
8
8
9
9
get shouldRenderNoIndexTag ( ) {
10
- const routeMeta = this . router . currentRoute . metadata ;
10
+ const routeMeta = this . router . currentRoute ? .metadata ;
11
11
const allowsAnonymousAccess = routeMeta instanceof RouteInfoMetadata && routeMeta . allowsAnonymousAccess ;
12
12
13
13
return ! allowsAnonymousAccess ;
You can’t perform that action at this time.
0 commit comments