Skip to content

Commit

Permalink
refactor(verifier): improve layout of Twitter icon on UserCard
Browse files Browse the repository at this point in the history
- Wrap Twitter icon in a flex container for better alignment
- Add gap between elements for improved spacing
  • Loading branch information
tower1229 committed Nov 18, 2024
1 parent 05eb9bb commit f1ac7e8
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/app/sign/verifier/UserCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,18 @@ export default function UserCard(props: {
}
</div>

{hasBindTwitter ? (
<a
className="border-none bg-gray-600 btn btn-circle btn-xs"
onClick={() =>
window.open(`https://twitter.com/${hasBindTwitter}`)
}
>
<XIcon />
</a>
) : null}
<div className="flex w-full gap-2">
{hasBindTwitter ? (
<a
className="border-none bg-gray-600 btn btn-circle btn-xs"
onClick={() =>
window.open(`https://twitter.com/${hasBindTwitter}`)
}
>
<XIcon />
</a>
) : null}
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit f1ac7e8

Please sign in to comment.