Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

Minor styling, and removed the most wanted from the sidebar for now...

Matt Roberts148d7f7b9472
diff --git a/public/components/VoteCounter.scss b/public/components/VoteCounter.scss
index 9eddddece..00b3d711e 100644
--- a/public/components/VoteCounter.scss
+++ b/public/components/VoteCounter.scss
@@ -10,7 +10,7 @@
// background-color: transparent;
text-align: center;
margin: 0 auto;
- padding: 0 0;
+ padding: 3px 0 8px 0;
color: get("colors.gray.700");
display: flex;
flex-direction: column;
diff --git a/public/pages/ShowPost/ShowPost.page.scss b/public/pages/ShowPost/ShowPost.page.scss
index def883fb3..9e8cb4107 100644
--- a/public/pages/ShowPost/ShowPost.page.scss
+++ b/public/pages/ShowPost/ShowPost.page.scss
@@ -26,11 +26,11 @@
.p-show-post {
display: grid;
gap: spacing(6);
- grid-template-columns: 5fr 2fr;
+ grid-template-columns: 1fr 5fr 1fr;
grid-template-rows: auto;
grid-template-areas:
- "Main Action"
- "Main Action";
+ "Action Main Nothing"
+ "Action Main Nothing";
&__main-col {
grid-area: Main;
diff --git a/public/pages/ShowPost/ShowPost.page.tsx b/public/pages/ShowPost/ShowPost.page.tsx
index f3d08a4b6..8bc39223d 100644
--- a/public/pages/ShowPost/ShowPost.page.tsx
+++ b/public/pages/ShowPost/ShowPost.page.tsx
@@ -19,7 +19,7 @@ import {
ImageViewer,
Icon,
Header,
- PoweredByFider,
+ // PoweredByFider,
Avatar,
Dropdown,
} from "@fider/components"
@@ -40,7 +40,7 @@ import { FollowButton } from "./components/FollowButton"
import { VoteSection } from "./components/VoteSection"
import { DeletePostModal } from "./components/DeletePostModal"
import { ResponseModal } from "./components/ResponseModal"
-import { MostWanted } from "./components/MostWanted"
+// import { MostWanted } from "./components/MostWanted"
interface ShowPostPageProps {
post: Post
@@ -308,8 +308,8 @@ export default class ShowPostPage extends React.Component<ShowPostPageProps, Sho
</div>
</div>
<div className="p-show-post__action-col">
- <MostWanted />
- <PoweredByFider slot="show-post" className="mt-3" />
+ {/* <MostWanted /> */}
+ {/* <PoweredByFider slot="show-post" className="mt-3" /> */}
</div>
</div>
</div>
diff --git a/public/pages/ShowPost/components/MostWanted.tsx b/public/pages/ShowPost/components/MostWanted.tsx
index 0989c1831..1d133be2c 100644
--- a/public/pages/ShowPost/components/MostWanted.tsx
+++ b/public/pages/ShowPost/components/MostWanted.tsx
@@ -2,6 +2,7 @@ import React from "react"
import { VStack } from "@fider/components/layout"
import { actions } from "@fider/services"
import { Post } from "@fider/models"
+import { Trans } from "@lingui/react"
export const MostWanted = () => {
const [posts, setPosts] = React.useState<Post[]>([])
@@ -16,16 +17,24 @@ export const MostWanted = () => {
return (
<VStack spacing={4}>
- <h1 className="text-title">Most Wanted</h1>
+ <h1 className="text-title">
+ <Trans id="home.postfilter.option.mostwanted">Most Wanted</Trans>
+ </h1>
{posts.length > 0 &&
posts.map((post) => (
- <div key={post.id} className="pt-1">
+ <div key={post.id} className="pt-1 hover">
<span className="text-medium">{post.title}</span>
<div className="pt-1 flex">
<span className="text-muted" style={{ width: "150px" }}>
- {post.commentsCount} comments
+ <Trans id="showpost.mostwanted.comments" values={{ count: post.commentsCount }}>
+ comments
+ </Trans>
+ </span>
+ <span className="text-muted">
+ <Trans id="showpost.mostwanted.votes" values={{ count: post.votesCount }} message="{count, plural, one {# votes} other {# votes}}">
+ votes
+ </Trans>
</span>
- <span className="text-muted">{post.votesCount} votes</span>
</div>
</div>
))}