Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

Better tag icons / styling

Matt Roberts78978cced780
diff --git a/public/assets/styles/utility/grid.scss b/public/assets/styles/utility/grid.scss
index 67e2e1ad1..29909bea4 100644
--- a/public/assets/styles/utility/grid.scss
+++ b/public/assets/styles/utility/grid.scss
@@ -35,4 +35,7 @@
.gap-#{$i} {
gap: spacing($i);
}
+ .gap-x-#{$i} {
+ column-gap: spacing($i);
+ }
}
diff --git a/public/components/ShowTag.scss b/public/components/ShowTag.scss
index f9844da9d..c64c64862 100644
--- a/public/components/ShowTag.scss
+++ b/public/components/ShowTag.scss
@@ -6,11 +6,11 @@
align-items: center;
font-size: 13px;
color: var(--colors-gray-900);
- background-color: var(--colors-gray-200);
+ // background-color: var(--colors-gray-200);
font-weight: 500;
border-radius: 5px;
// line-height: 18px;
- padding: 6px 10px;
+ padding: 6px 0;
border: 0;
&[href] {
@@ -23,7 +23,7 @@
}
span {
- margin-inline-end: 7px;
+ margin-inline-end: 4px;
width: 12px;
height: 12px;
border-radius: 50%;
diff --git a/public/components/ShowTag.tsx b/public/components/ShowTag.tsx
index 63174ffc4..30f6923c4 100644
--- a/public/components/ShowTag.tsx
+++ b/public/components/ShowTag.tsx
@@ -4,7 +4,6 @@ import React, { MouseEvent } from "react"
import { Tag } from "@fider/models"
import { classSet } from "@fider/services"
import EyeSlash from "@fider/assets/images/heroicons-eyeslash.svg"
-import TagSolid from "@fider/assets/images/heroicons-tagsolid.svg"
import { Icon } from "./common"
interface TagProps {
@@ -39,7 +38,7 @@ export const ShowTag = (props: TagProps) => {
className={className}
onClick={clickHandler}
>
- <Icon style={{ color: `#${props.tag.color}` }} className="pr-1" height="18" width="18" sprite={TagSolid}></Icon>
+ <span style={{ backgroundColor: `#${props.tag.color}` }} />
{!props.tag.isPublic && !props.circular && <Icon height="14" width="14" sprite={EyeSlash} className="mr-1" />}
{props.circular ? "" : props.tag.name || "Tag"}
</a>
diff --git a/public/components/common/TagsSelect.scss b/public/components/common/TagsSelect.scss
index 5e102d707..e729eccd7 100644
--- a/public/components/common/TagsSelect.scss
+++ b/public/components/common/TagsSelect.scss
@@ -13,6 +13,10 @@
min-height: 40px;
width: 100%;
padding: 0 spacing(1);
+
+ button {
+ font-size: 13px;
+ }
}
.c-tags-select__selected-container {
@@ -35,6 +39,7 @@
background-color: var(--colors-gray-200);
border-radius: get("border.radius.small");
color: var(--colors-gray-900);
+ padding-left: spacing(2);
}
.c-tags-select__remove-button {
diff --git a/public/pages/Home/components/ListPosts.tsx b/public/pages/Home/components/ListPosts.tsx
index 6d0d62ef6..5158cd4b1 100644
--- a/public/pages/Home/components/ListPosts.tsx
+++ b/public/pages/Home/components/ListPosts.tsx
@@ -56,7 +56,7 @@ const ListPostItem = (props: {
</HStack>
<Markdown className="c-posts-container__postdescription" maxLength={300} text={props.post.description} style="plainText" />
{props.tags.length >= 1 && (
- <HStack spacing={0} className="gap-2 flex-wrap">
+ <HStack spacing={0} className="gap-x-4 flex-wrap">
{props.tags.map((tag) => (
<ShowTag key={tag.id} tag={tag} />
))}
diff --git a/public/pages/Roadmap/Roadmap.page.tsx b/public/pages/Roadmap/Roadmap.page.tsx
index 580d9f651..3947ff2d8 100644
--- a/public/pages/Roadmap/Roadmap.page.tsx
+++ b/public/pages/Roadmap/Roadmap.page.tsx
@@ -60,7 +60,7 @@ const RoadmapPost = (props: { post: Post; tags: Tag[]; status: string; onPostCli
)}
</HStack>
{props.tags.length >= 1 && (
- <HStack spacing={0} className="gap-2 flex-wrap">
+ <HStack spacing={0} className="gap-x-4 flex-wrap">
{props.tags.map((tag) => (
<ShowTag key={tag.id} tag={tag} />
))}