Skip to content

Commit

Permalink
style: change pin style
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Jan 31, 2024
1 parent 3056b40 commit c3af60a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
7 changes: 0 additions & 7 deletions src/components/posts/view-post/helpers.module.sass
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,3 @@

@media screen and ( max-width: 768px)
gap: $space_tiny

.PinnedPostIcon
position: absolute
top: -4px
right: -4px
color: $color_muted
font-size: $font_big
12 changes: 10 additions & 2 deletions src/components/posts/view-post/helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import clsx from 'clsx'
import isEmpty from 'lodash.isempty'
import Error from 'next/error'
import React, { FC, useState } from 'react'
import { RiPushpinLine } from 'react-icons/ri'
import { RiPushpin2Fill } from 'react-icons/ri'
import { TbMessageCircle2 } from 'react-icons/tb'
import { useIsMobileWidthOrDevice } from 'src/components/responsive'
import { useIsMySpace } from 'src/components/spaces/helpers'
Expand Down Expand Up @@ -505,5 +505,13 @@ export function PinnedPostIcon({ postId }: { postId: string }) {
const isPinned = isPinnedPost(postId)
if (!isPinned) return null

return <RiPushpinLine className={styles.PinnedPostIcon} />
return (
<div
className='d-flex align-items-center GapTiny ColorMuted mb-1 FontWeightSemibold'
style={{ marginTop: '-12px' }}
>
<RiPushpin2Fill />
<span>Pinned</span>
</div>
)
}
1 change: 0 additions & 1 deletion src/styles/subsocial.scss
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,6 @@ hr {
.DfPostPreview {
display: flex;
flex-direction: column;
position: relative;

.ui.button {
min-width: initial;
Expand Down

0 comments on commit c3af60a

Please sign in to comment.