Enable comment hint for end of thread/conversation

This commit is contained in:
Lim Chee Aun 2023-11-15 00:42:19 +08:00
parent 19ed85f298
commit d87f60665a

View file

@ -567,11 +567,12 @@ function TimelineItem({
!_differentAuthor && !_differentAuthor &&
!items[i - 1]._differentAuthor && !items[i - 1]._differentAuthor &&
!items[i + 1]._differentAuthor))); !items[i + 1]._differentAuthor)));
const isEnd = i === items.length - 1;
return ( return (
<li <li
key={`timeline-${statusID}`} key={`timeline-${statusID}`}
class={`timeline-item-container timeline-item-container-type-${type} timeline-item-container-${ class={`timeline-item-container timeline-item-container-type-${type} timeline-item-container-${
i === 0 ? 'start' : i === items.length - 1 ? 'end' : 'middle' i === 0 ? 'start' : isEnd ? 'end' : 'middle'
} ${_differentAuthor ? 'timeline-item-diff-author' : ''}`} } ${_differentAuthor ? 'timeline-item-diff-author' : ''}`}
> >
<Link class="status-link timeline-item" to={url}> <Link class="status-link timeline-item" to={url}>
@ -581,12 +582,14 @@ function TimelineItem({
<Status <Status
statusID={statusID} statusID={statusID}
instance={instance} instance={instance}
enableCommentHint={isEnd}
// allowFilters={allowFilters} // allowFilters={allowFilters}
/> />
) : ( ) : (
<Status <Status
status={item} status={item}
instance={instance} instance={instance}
enableCommentHint={isEnd}
// allowFilters={allowFilters} // allowFilters={allowFilters}
/> />
)} )}