diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index 6808b96c..1b765ad0 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -1,5 +1,5 @@ { - "...subscribing": "...subscribing", + "subscribing...": "subscribing...", "About": "About", "About the project": "About the project", "Add a few topics so that the reader knows what your content is about and can find it on pages of topics that interest them. Topics can be swapped, the first topic becomes the title": "Add a few topics so that the reader knows what your content is about and can find it on pages of topics that interest them. Topics can be swapped, the first topic becomes the title", diff --git a/public/locales/ru/translation.json b/public/locales/ru/translation.json index 9f7333f8..1ed9ca94 100644 --- a/public/locales/ru/translation.json +++ b/public/locales/ru/translation.json @@ -1,5 +1,5 @@ { - "...subscribing": "...подписываем", + "subscribing...": "Подписка...", "A short introduction to keep the reader interested": "Добавьте вступление, чтобы заинтересовать читателя", "About": "О себе", "About the project": "О проекте", diff --git a/src/components/Author/AuthorBadge/AuthorBadge.module.scss b/src/components/Author/AuthorBadge/AuthorBadge.module.scss index dc79e763..a1c6032a 100644 --- a/src/components/Author/AuthorBadge/AuthorBadge.module.scss +++ b/src/components/Author/AuthorBadge/AuthorBadge.module.scss @@ -81,9 +81,24 @@ padding: 6px !important; min-width: 32px; width: unset; + &:hover img { filter: invert(1); } } + + &:hover { + .actionButtonLabel { + display: none; + } + + .actionButtonLabelHovered { + display: block; + } + } + } + + .actionButtonLabelHovered { + display: none; } } diff --git a/src/components/Author/AuthorBadge/AuthorBadge.tsx b/src/components/Author/AuthorBadge/AuthorBadge.tsx index 851bacf9..89194295 100644 --- a/src/components/Author/AuthorBadge/AuthorBadge.tsx +++ b/src/components/Author/AuthorBadge/AuthorBadge.tsx @@ -60,9 +60,22 @@ export const AuthorBadge = (props: Props) => { if (props.iconButtons) { return } - return isSubscribing() ? t('...subscribing') : t('Subscribe') + return isSubscribing() ? t('subscribing...') : t('Subscribe') }) + const unsubscribeValue = () => { + if (props.iconButtons) { + return + } + + return ( + <> + {t('Following')} + {t('Unfollow')} + + ) + } + return (
{ fallback={
} diff --git a/src/components/Topic/Card.module.scss b/src/components/Topic/Card.module.scss index c5b56fbb..164bf43b 100644 --- a/src/components/Topic/Card.module.scss +++ b/src/components/Topic/Card.module.scss @@ -115,6 +115,12 @@ } } +.actionButton { + border-radius: 0.8rem !important; + margin-right: 0 !important; + width: 9em; +} + .isSubscribing { opacity: 0.5; } diff --git a/src/components/Topic/Card.tsx b/src/components/Topic/Card.tsx index 4a073238..84b0562e 100644 --- a/src/components/Topic/Card.tsx +++ b/src/components/Topic/Card.tsx @@ -13,6 +13,7 @@ import { CheckButton } from '../_shared/CheckButton' import { capitalize } from '../../utils/capitalize' import styles from './Card.module.scss' +import { Button } from '../_shared/Button' interface TopicProps { topic: Topic @@ -62,6 +63,24 @@ export const TopicCard = (props: TopicProps) => { }, 'subscribe') } + const subscribeValue = () => { + return ( + <> + + + + + + + + {t('Unfollow')} + {t('Following')} + + + + ) + } + return (
{ } > - + /> diff --git a/src/components/Topic/TopicBadge/TopicBadge.tsx b/src/components/Topic/TopicBadge/TopicBadge.tsx index c76f60b3..3387a2e8 100644 --- a/src/components/Topic/TopicBadge/TopicBadge.tsx +++ b/src/components/Topic/TopicBadge/TopicBadge.tsx @@ -80,7 +80,7 @@ export const TopicBadge = (props: Props) => {
-
Подпишитесь на рассылку лучших публикаций
+
Подпишитесь на рассылку лучших публикаций
{emailError()}
diff --git a/src/styles/app.scss b/src/styles/app.scss index 44b7e5a0..57321255 100644 --- a/src/styles/app.scss +++ b/src/styles/app.scss @@ -1036,3 +1036,7 @@ iframe { .cursorPointer { cursor: pointer; } + +.img-align-column { + clear: both; +}