Remove comment edited date

This commit is contained in:
ilya-bkv 2024-03-04 11:54:09 +03:00
parent 312f0f5cc9
commit e0503f593f
3 changed files with 1 additions and 21 deletions

View File

@ -136,7 +136,6 @@
"Each image must be no larger than 5 MB.": "Каждое изображение должно быть размером не больше 5 мб.",
"Edit profile": "Редактировать профиль",
"Edit": "Редактировать",
"Edited": "Отредактирован",
"Editing": "Редактирование",
"Editor": "Редактор",
"Email": "Почта",

View File

@ -2,7 +2,7 @@
@include font-size(1.2rem);
color: var(--secondary-color);
// align-self: center;
display: flex;
align-items: flex-start;
@ -18,15 +18,6 @@
font-weight: 500;
margin-right: 1rem;
position: relative;
.icon {
line-height: 1;
width: 1rem;
display: inline-block;
opacity: 0.6;
margin-right: 0.5rem;
vertical-align: middle;
}
}
&.showOnHover {

View File

@ -1,10 +1,8 @@
import type { Reaction } from '../../../graphql/schema/core.gen'
import { clsx } from 'clsx'
import { Show } from 'solid-js'
import { useLocalize } from '../../../context/localize'
import { Icon } from '../../_shared/Icon'
import styles from './CommentDate.module.scss'
@ -34,14 +32,6 @@ export const CommentDate = (props: Props) => {
})}
>
<time class={styles.date}>{formattedDate(props.comment.created_at * 1000)}</time>
<Show when={props.comment.updated_at}>
<time class={styles.date}>
<Icon name="edit" class={styles.icon} />
<span class={styles.text}>
{t('Edited')} {formattedDate(props.comment.updated_at * 1000)}
</span>
</time>
</Show>
</div>
)
}