Merge branch 'scroll-to-links-fix' of gitlab.com:discoursio/discoursio-webapp into scroll-to-links-fix

This commit is contained in:
bniwredyc 2023-04-03 16:26:50 +02:00
commit 4feab7060c
3 changed files with 2 additions and 4 deletions

View File

@ -10,7 +10,6 @@ import { useReactions } from '../../context/reactions'
import { byCreated } from '../../utils/sortby' import { byCreated } from '../../utils/sortby'
import { ShowIfAuthenticated } from '../_shared/ShowIfAuthenticated' import { ShowIfAuthenticated } from '../_shared/ShowIfAuthenticated'
import { useLocalize } from '../../context/localize' import { useLocalize } from '../../context/localize'
import Cookie from 'js-cookie'
type CommentsOrder = 'createdAt' | 'rating' | 'newOnly' type CommentsOrder = 'createdAt' | 'rating' | 'newOnly'
@ -148,7 +147,7 @@ export const CommentsTree = (props: Props) => {
</ul> </ul>
</div> </div>
<ul class={styles.comments}> <ul class={styles.comments}>
<For each={sortedComments().filter((r) => !r.replyTo)}> <For each={sortedComments().filter((r: Reaction) => !r.replyTo)}>
{(reaction) => ( {(reaction) => (
<Comment <Comment
sortedComments={sortedComments()} sortedComments={sortedComments()}

View File

@ -187,7 +187,7 @@ export const FullArticle = (props: ArticleProps) => {
<a href="#comments" class={styles.shoutStatsItem}> <a href="#comments" class={styles.shoutStatsItem}>
<Icon name="comment" class={styles.icon} /> <Icon name="comment" class={styles.icon} />
{/*{props.article.stat?.commented || ''}*/} {props.article.stat?.commented ?? ''}
</a> </a>
<div class={styles.shoutStatsItem}> <div class={styles.shoutStatsItem}>

View File

@ -155,7 +155,6 @@ export const ArticleCard = (props: ArticleCardProps) => {
</For> </For>
</div> </div>
</Show> </Show>
<Show when={!props.settings?.nodate}> <Show when={!props.settings?.nodate}>
<div class={styles.shoutDate}>{formattedDate()}</div> <div class={styles.shoutDate}>{formattedDate()}</div>
</Show> </Show>