Skip to content

Commit 5b2ab4a

Browse files
committed
feat: update ProductFeedItem to use SiProducthunt icon and improve vertical alignment in row details
1 parent 0039390 commit 5b2ab4a

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

src/assets/App.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,11 @@ a {
495495
font-size: 12px;
496496
}
497497

498+
.rowDetails .rowItem.verticalAligned {
499+
display: inline-flex;
500+
align-items: center;
501+
gap: 4px;
502+
}
498503
.rowDescription .rowItem {
499504
font-size: 12px;
500505
}

src/features/feed/components/feedItems/ProductFeedItem.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { GoDotFill } from 'react-icons/go'
1+
import { SiProducthunt } from 'react-icons/si'
22
import { CardItemWithActions } from 'src/components/Elements'
33
import { useUserPreferences } from 'src/stores/preferences'
44
import { BaseItemPropsType, ProductHuntFeedItemData } from 'src/types'
@@ -22,15 +22,15 @@ export const ProductFeedItem = (props: BaseItemPropsType<ProductHuntFeedItemData
2222
</div>
2323
{listingMode === 'compact' && (
2424
<div className="rowDetails">
25-
<span className="rowItem capitalize">
26-
<GoDotFill className="rowItemIcon" /> Product Hunt
25+
<span className="rowItem verticalAligned">
26+
<SiProducthunt color="#D65736" /> Product Hunt
2727
</span>
2828
</div>
2929
)}
3030
{listingMode === 'normal' && (
3131
<div className="rowDetails">
32-
<span className="rowItem capitalize">
33-
<GoDotFill className="rowItemIcon" /> Product Hunt
32+
<span className="rowItem verticalAligned">
33+
<SiProducthunt color="#D65736" /> Product Hunt
3434
</span>
3535
</div>
3636
)}

0 commit comments

Comments
 (0)