diff --git a/src/components/posts/view-post/PostViewCount.tsx b/src/components/posts/view-post/PostViewCount.tsx index ecf732d16..a62c8f5f8 100644 --- a/src/components/posts/view-post/PostViewCount.tsx +++ b/src/components/posts/view-post/PostViewCount.tsx @@ -1,6 +1,6 @@ +import clsx from 'clsx' import { ComponentProps } from 'react' import { FaRegEye } from 'react-icons/fa' -import { IconWithLabel } from 'src/components/utils' import { usePostViewCount } from 'src/rtk/app/hooks' export default function PostViewCount({ @@ -10,8 +10,15 @@ export default function PostViewCount({ const viewCount = usePostViewCount(postId) return ( -
- } count={viewCount} /> +
+ + {viewCount}
) } diff --git a/src/components/posts/view-post/helpers.module.sass b/src/components/posts/view-post/helpers.module.sass index 621df0e2c..1ee6d992e 100644 --- a/src/components/posts/view-post/helpers.module.sass +++ b/src/components/posts/view-post/helpers.module.sass @@ -1,13 +1,4 @@ @import "src/styles/subsocial-vars.scss" - -.PostActions - gap: $space_large - display: grid - width: 100% - grid-template-columns: 1fr 1fr 1fr 1fr - - @media screen and ( max-width: 768px) - gap: $space_normal .PostContent gap: $space_small diff --git a/src/components/posts/view-post/helpers.tsx b/src/components/posts/view-post/helpers.tsx index b7f5fe6e9..44996b373 100644 --- a/src/components/posts/view-post/helpers.tsx +++ b/src/components/posts/view-post/helpers.tsx @@ -49,7 +49,6 @@ import { ShareDropdown } from '../share/ShareDropdown' import ViewPostLink from '../ViewPostLink' import styles from './helpers.module.sass' import { PostDropDownMenu } from './PostDropDownMenu' -import PostRewardStat from './PostRewardStat' import PostViewCount from './PostViewCount' import TwitterPost from './TwitterPost' @@ -337,11 +336,12 @@ export const PostActionsPanel: FC = props => { return (
-
- - {preview && } +
+
+ + {preview && } +
-
{/* */}