Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

Tidied up some classes

Matt Robertsec52c29e4d9a
diff --git a/public/assets/styles/utility/display.scss b/public/assets/styles/utility/display.scss
index 3448696e9..54ab1fb6b 100644
--- a/public/assets/styles/utility/display.scss
+++ b/public/assets/styles/utility/display.scss
@@ -18,6 +18,10 @@
display: inline-block;
}
+.inline-flex {
+ display: inline-flex;
+}
+
@each $media in $medias {
@include media(#{$media}) {
.#{$media}\:hidden {
diff --git a/public/pages/Home/components/ListPosts.tsx b/public/pages/Home/components/ListPosts.tsx
index 0c30722a1..2fc55f96a 100644
--- a/public/pages/Home/components/ListPosts.tsx
+++ b/public/pages/Home/components/ListPosts.tsx
@@ -59,7 +59,7 @@ const ListPostItem = (props: { post: Post; user?: CurrentUser; tags: Tag[]; onPo
<span className="text-semibold text-2xl">{props.post.votesCount}</span>{" "}
<span className="text-gray-700">{props.post.votesCount === 1 ? <Trans id="label.vote">Vote</Trans> : <Trans id="label.votes">Votes</Trans>}</span>
{props.post.hasVoted && (
- <span className="text-xs text-blue-600 ml-2" style={{ display: "inline-flex", alignItems: "center" }}>
+ <span className="text-xs text-blue-600 ml-2 inline-flex flex-items-center">
<Icon sprite={IconCheck} className="h-3 w-3 mr-1" />
<Trans id="action.voted">Voted!</Trans>
</span>