Skip to content

Commit

Permalink
feat: move timestamp beside name (#2607)
Browse files Browse the repository at this point in the history
* feat: move timestamp beside name

* feat: timestamp top align
  • Loading branch information
colbr authored Jan 22, 2025
1 parent 8ea99b3 commit 09a9291
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/apps/feed/components/post/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ export const Post = ({
{/* @ts-ignore */}
<Name className={styles.Name} variant='name'>
{nickname}
<span></span>
{variant === 'default' && <Timestamp className={styles.Date} timestamp={timestamp} />}
</Name>
{author && (
<>
Expand All @@ -200,7 +202,6 @@ export const Post = ({
</div>
</div>
}
options={variant === 'default' && <Timestamp className={styles.Date} timestamp={timestamp} />}
actions={
isMeowsEnabled && (
<Actions variant={variant}>
Expand Down
13 changes: 13 additions & 0 deletions src/apps/feed/components/post/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,22 @@
}

.Name {
display: flex;
gap: 4px;
align-items: center;

font-size: 14px !important;
font-weight: 600;
line-height: 14px;

.Date,
span {
font-weight: 400;
}

.Date {
font-size: 12px;
}
}

.UserName {
Expand Down

0 comments on commit 09a9291

Please sign in to comment.