From e0503f593f0e6ab5ee812b7d551bca6c60cc3e73 Mon Sep 17 00:00:00 2001 From: ilya-bkv Date: Mon, 4 Mar 2024 11:54:09 +0300 Subject: [PATCH] Remove comment edited date --- public/locales/ru/translation.json | 1 - .../Article/CommentDate/CommentDate.module.scss | 11 +---------- src/components/Article/CommentDate/CommentDate.tsx | 10 ---------- 3 files changed, 1 insertion(+), 21 deletions(-) diff --git a/public/locales/ru/translation.json b/public/locales/ru/translation.json index 647917b0..8c93787b 100644 --- a/public/locales/ru/translation.json +++ b/public/locales/ru/translation.json @@ -136,7 +136,6 @@ "Each image must be no larger than 5 MB.": "Каждое изображение должно быть размером не больше 5 мб.", "Edit profile": "Редактировать профиль", "Edit": "Редактировать", - "Edited": "Отредактирован", "Editing": "Редактирование", "Editor": "Редактор", "Email": "Почта", diff --git a/src/components/Article/CommentDate/CommentDate.module.scss b/src/components/Article/CommentDate/CommentDate.module.scss index 18caedde..89d90585 100644 --- a/src/components/Article/CommentDate/CommentDate.module.scss +++ b/src/components/Article/CommentDate/CommentDate.module.scss @@ -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 { diff --git a/src/components/Article/CommentDate/CommentDate.tsx b/src/components/Article/CommentDate/CommentDate.tsx index e3901399..ff5bc9c5 100644 --- a/src/components/Article/CommentDate/CommentDate.tsx +++ b/src/components/Article/CommentDate/CommentDate.tsx @@ -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) => { })} > - - - ) }