Skip to content

Commit

Permalink
feed ui tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
mantikoros committed Apr 22, 2023
1 parent 9f6de45 commit 867a388
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions web/components/feed/feed-bets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ export const SummarizeBets = memo(function SummarizeBets(props: {
size={avatarSize}
avatarUrl={userAvatarUrl}
username={userUsername}
className='z-10'
/>
) : (
<EmptyAvatar className="mx-1" />
Expand Down
6 changes: 4 additions & 2 deletions web/components/feed/feed-items.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export const FeedItems = (props: {
}
})

const hasItems = commentThreads.length > 0 || recentBets.length > 0

return (
<Col>
{groupedItems.map((itemGroup) => {
Expand All @@ -51,8 +53,8 @@ export const FeedItems = (props: {
<ContractCardNew
contract={contract}
className={clsx(
'my-0 border-0',
commentThreads.length > 0 ? 'rounded-t-xl rounded-b-none ' : ''
'my-0 border-0',
hasItems ? 'rounded-t-xl rounded-b-none ' : ''
)}
/>
<Row className="bg-ink-0">
Expand Down

0 comments on commit 867a388

Please sign in to comment.