diff --git a/front_end/src/components/post_card/basic_post_card/index.tsx b/front_end/src/components/post_card/basic_post_card/index.tsx index 0d826486f..59f5affb9 100644 --- a/front_end/src/components/post_card/basic_post_card/index.tsx +++ b/front_end/src/components/post_card/basic_post_card/index.tsx @@ -84,7 +84,7 @@ const BasicPostCard: FC> = ({ {children}
- + {!minimalistic && isQuestionPost(post) && ( diff --git a/front_end/src/components/post_card/basic_post_card/post_controls.tsx b/front_end/src/components/post_card/basic_post_card/post_controls.tsx index adc180997..375d8e4d0 100644 --- a/front_end/src/components/post_card/basic_post_card/post_controls.tsx +++ b/front_end/src/components/post_card/basic_post_card/post_controls.tsx @@ -14,12 +14,12 @@ import PostVoter from "./post_voter"; type Props = { post: Post; - withVoter?: boolean; + minimalistic?: boolean; }; const BasicPostControls: FC> = ({ post, - withVoter = true, + minimalistic = false, }) => { const resolutionData = extractPostResolution(post); const defaultProject = post.projects.default_project; @@ -29,12 +29,14 @@ const BasicPostControls: FC> = ({ const projectNameLength = defaultProject?.name.length ?? 0; const shouldUseCompactPostStatus = - projectNameLength >= 30 || (hasUnreadMessages && projectNameLength > 15); + projectNameLength >= 30 || + (hasUnreadMessages && projectNameLength > 15) || + minimalistic; return (
- {withVoter && } + {!minimalistic && } {/* CommentStatus - compact on small screens, full on large screens */} > = ({ />
- + {!minimalistic && ( + + )}
);