diff --git a/src/components/node/NodeRelated/index.tsx b/src/components/node/NodeRelated/index.tsx index 8e9888f7..17c78588 100644 --- a/src/components/node/NodeRelated/index.tsx +++ b/src/components/node/NodeRelated/index.tsx @@ -3,6 +3,7 @@ import styles from './styles.module.scss'; import { Group } from '~/components/containers/Group'; import { INode } from '~/redux/types'; import { NodeRelatedItem } from '~/components/node/NodeRelatedItem'; +import { SubTitle } from '~/components/common/SubTitle'; interface IProps { title: ReactElement | string; @@ -12,9 +13,7 @@ interface IProps { const NodeRelated: FC = ({ title, items }) => { return ( -
-
{title}
-
+ {title}
{items.map(item => ( diff --git a/src/components/node/NodeRelated/styles.module.scss b/src/components/node/NodeRelated/styles.module.scss index ff4cbb95..9685b792 100644 --- a/src/components/node/NodeRelated/styles.module.scss +++ b/src/components/node/NodeRelated/styles.module.scss @@ -21,7 +21,7 @@ } .title { - @include title_with_line(); + padding-left: 5px; a { text-decoration: none; diff --git a/src/containers/lab/LabStats/index.tsx b/src/containers/lab/LabStats/index.tsx index f567884b..5d632a0c 100644 --- a/src/containers/lab/LabStats/index.tsx +++ b/src/containers/lab/LabStats/index.tsx @@ -16,6 +16,7 @@ import { import { LabTags } from '~/components/lab/LabTags'; import { LabHeroes } from '~/components/lab/LabHeroes'; import { FlowRecentItem } from '~/components/flow/FlowRecentItem'; +import { SubTitle } from '~/components/common/SubTitle'; interface IProps {} @@ -31,10 +32,10 @@ const LabStats: FC = () => {
- {isLoading ? ( - - ) : ( - tags.length &&
Тэги
+ {(!!tags.length || isLoading) && ( + + Тэги + )}
@@ -56,10 +57,10 @@ const LabStats: FC = () => { )} - {isLoading ? ( - - ) : ( - heroes.length > 0 &&
Важные
+ {(!!heroes.length || isLoading) && ( + + Важные + )}
diff --git a/src/containers/lab/LabStats/styles.module.scss b/src/containers/lab/LabStats/styles.module.scss index de9d0c23..4ec81c2f 100644 --- a/src/containers/lab/LabStats/styles.module.scss +++ b/src/containers/lab/LabStats/styles.module.scss @@ -1,10 +1,7 @@ @import "~/styles/variables.scss"; .title { - font: $font_14_semibold; - color: darken(white, 50%); - text-transform: uppercase; - padding: 0 $gap / 2; + padding-bottom: $gap; } .tags.tags { @@ -26,3 +23,4 @@ .updates { padding: 0 $gap / 4 $gap * 2; } +