From 9e87a0f55c84c0f7698263b16f66fb7aa1c9ed4e Mon Sep 17 00:00:00 2001 From: kvakazyambra Date: Thu, 7 Sep 2023 01:55:16 +0300 Subject: [PATCH] Fixed couners style in the modals on the author page --- .../Author/AuthorCard/AuthorCard.module.scss | 16 ++++++++++++++++ src/components/Author/AuthorCard/AuthorCard.tsx | 13 ++++++++++--- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/src/components/Author/AuthorCard/AuthorCard.module.scss b/src/components/Author/AuthorCard/AuthorCard.module.scss index fa6574c4..fe8c8d07 100644 --- a/src/components/Author/AuthorCard/AuthorCard.module.scss +++ b/src/components/Author/AuthorCard/AuthorCard.module.scss @@ -479,3 +479,19 @@ overflow: auto; padding-right: 2rem; } + +.switcherCounter { + background: #f7f7f8; + border-radius: 0.8rem; + display: inline-block; + font-size: 1.2rem; + font-weight: bold; + line-height: 1.2; + margin-left: 0.4rem; + padding: 0.4rem 0.6rem; +} + +:global(.view-switcher__item--selected) .switcherCounter { + background: #000; + color: #fff; +} diff --git a/src/components/Author/AuthorCard/AuthorCard.tsx b/src/components/Author/AuthorCard/AuthorCard.tsx index 3975b566..9ee3c6b4 100644 --- a/src/components/Author/AuthorCard/AuthorCard.tsx +++ b/src/components/Author/AuthorCard/AuthorCard.tsx @@ -372,18 +372,25 @@ export const AuthorCard = (props: AuthorCardProps) => {