diff --git a/src/components/Feed/Card.module.scss b/src/components/Feed/Card.module.scss index 3a1b21bd..09ba51d8 100644 --- a/src/components/Feed/Card.module.scss +++ b/src/components/Feed/Card.module.scss @@ -418,7 +418,7 @@ display: flex; } -.shoutCardDetailsTtem { +.shoutCardDetailsItem { align-items: center; display: flex; margin-right: 1.7em; @@ -454,6 +454,12 @@ } } +.shoutCardDetailsViewed { + .icon { + margin-top: -0.1em; + } +} + .rating { align-items: center; display: flex; diff --git a/src/components/Feed/Card.tsx b/src/components/Feed/Card.tsx index 3be727e3..962144ae 100644 --- a/src/components/Feed/Card.tsx +++ b/src/components/Feed/Card.tsx @@ -5,7 +5,7 @@ import type { Shout } from '../../graphql/types.gen' import { capitalize } from '../../utils' import { translit } from '../../utils/ru2en' import { Icon } from '../Nav/Icon' -import style from './Card.module.scss' +import styles from './Card.module.scss' import { locale } from '../../stores/ui' import { handleClientRouteLinkClick } from '../../stores/router' import { getLogger } from '../../utils/logger' @@ -75,33 +75,33 @@ export const ArticleCard = (props: ArticleCardProps) => { return (
-
-
+
+
{title
-
+
-
+ @@ -116,24 +116,24 @@ export const ArticleCard = (props: ArticleCardProps) => { /> -
+
-
- {title} +
+ {title}
-
-
+
-
+
{(author, index) => { const name = @@ -153,44 +153,50 @@ export const ArticleCard = (props: ArticleCardProps) => { -
{formattedDate()}
+
{formattedDate()}
-
-
-
- - {stat?.rating || ''} - +
+
+
+ + {stat?.rating || ''} +
-
- +
+ {stat?.viewed}
-
+ -
+
-
+
- +
diff --git a/src/components/Feed/Sidebar.tsx b/src/components/Feed/Sidebar.tsx index b347310e..09dac4a8 100644 --- a/src/components/Feed/Sidebar.tsx +++ b/src/components/Feed/Sidebar.tsx @@ -85,12 +85,12 @@ export const FeedSidebar = (props: FeedSidebarProps) => { -

+

) } diff --git a/src/components/Views/Feed.tsx b/src/components/Views/Feed.tsx index 756124cc..af1c07a2 100644 --- a/src/components/Views/Feed.tsx +++ b/src/components/Views/Feed.tsx @@ -1,6 +1,7 @@ import { createMemo, For, Show } from 'solid-js' import type { Shout, Reaction } from '../../graphql/types.gen' import '../../styles/Feed.scss' +import stylesBeside from '../../components/Feed/Beside.module.scss' import { Icon } from '../Nav/Icon' import { byCreated, sortBy } from '../../utils/sortby' import { TopicCard } from '../Topic/Card' @@ -90,7 +91,7 @@ export const FeedView = (props: FeedProps) => { {(article) => } -
+ -
    +
      {(author) => (
    • diff --git a/src/styles/Feed.scss b/src/styles/Feed.scss index c767812e..767525ac 100644 --- a/src/styles/Feed.scss +++ b/src/styles/Feed.scss @@ -120,11 +120,25 @@ display: flex; justify-content: space-between; + img { + transition: filter 0.3s; + } + a { margin-right: 0.3em; + + &:hover { + img { + filter: invert(1); + } + } } .icon { + display: inline-block; + line-height: 1; + margin-left: 0.3em; + vertical-align: middle; width: 1em; } }