Remove comment edited date
This commit is contained in:
parent
312f0f5cc9
commit
e0503f593f
|
@ -136,7 +136,6 @@
|
||||||
"Each image must be no larger than 5 MB.": "Каждое изображение должно быть размером не больше 5 мб.",
|
"Each image must be no larger than 5 MB.": "Каждое изображение должно быть размером не больше 5 мб.",
|
||||||
"Edit profile": "Редактировать профиль",
|
"Edit profile": "Редактировать профиль",
|
||||||
"Edit": "Редактировать",
|
"Edit": "Редактировать",
|
||||||
"Edited": "Отредактирован",
|
|
||||||
"Editing": "Редактирование",
|
"Editing": "Редактирование",
|
||||||
"Editor": "Редактор",
|
"Editor": "Редактор",
|
||||||
"Email": "Почта",
|
"Email": "Почта",
|
||||||
|
|
|
@ -18,15 +18,6 @@
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
margin-right: 1rem;
|
margin-right: 1rem;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.icon {
|
|
||||||
line-height: 1;
|
|
||||||
width: 1rem;
|
|
||||||
display: inline-block;
|
|
||||||
opacity: 0.6;
|
|
||||||
margin-right: 0.5rem;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&.showOnHover {
|
&.showOnHover {
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
import type { Reaction } from '../../../graphql/schema/core.gen'
|
import type { Reaction } from '../../../graphql/schema/core.gen'
|
||||||
|
|
||||||
import { clsx } from 'clsx'
|
import { clsx } from 'clsx'
|
||||||
import { Show } from 'solid-js'
|
|
||||||
|
|
||||||
import { useLocalize } from '../../../context/localize'
|
import { useLocalize } from '../../../context/localize'
|
||||||
import { Icon } from '../../_shared/Icon'
|
|
||||||
|
|
||||||
import styles from './CommentDate.module.scss'
|
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>
|
<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>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user