Skip to content

Commit

Permalink
Refix delegate button for mobile view (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
wirednkod authored Sep 16, 2024
1 parent 8c72ddc commit 93de301
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/DelegateCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ export const DelegateCard = ({

return (
<Card className={cn('flex flex-col p-4', className)}>
<div className="flex columns-3">
<div className="flex flex-col md:flex-row">
<div className="vertical center p-2">
<img className="rounded-full border" width="100" src={image} />
</div>
<div className="w-full p-2">
<div className="p-2 md:w-[85%]">
<div className="flex items-center gap-1 py-2 text-xl font-semibold">
{name}
{hasShareButton && (
Expand All @@ -73,7 +73,7 @@ export const DelegateCard = ({
</div>
<div className="flex gap-1">
{hasDelegateButton && (
<Button variant="default" onClick={onDelegate}>
<Button variant="default" onClick={onDelegate} className="w-full">
Delegate
</Button>
)}
Expand Down

0 comments on commit 93de301

Please sign in to comment.