Skip to content

Commit

Permalink
fix: wallet select layout (#2644)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnthecat authored Nov 13, 2024
1 parent 255fe97 commit 27486a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/renderer/entities/wallet/ui/Cards/WalletCardLg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const WalletCardLg = ({ wallet, description, full, className }: Props) =>
const isWalletConnect = walletUtils.isWalletConnectGroup(wallet);

return (
<div className={cnTw('flex h-8 w-full items-center gap-x-2', className)}>
<div className={cnTw('flex h-8 w-full min-w-0 items-center gap-x-2', className)}>
<div className="relative">
<WalletIcon type={wallet.type} size={32} />
{isWalletConnect && !full && (
Expand Down
5 changes: 4 additions & 1 deletion src/renderer/entities/wallet/ui/Cards/WalletCardMd.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ export const WalletCardMd = ({ wallet, description, prefix, hideIcon, className,
className,
)}
>
<button className="flex w-full items-center gap-x-2 rounded px-2 py-1.5" onClick={handleClick(onClick)}>
<button
className={cnTw('flex w-full items-center gap-x-2 rounded px-2 py-1.5', { 'pe-6': onInfoClick })}
onClick={handleClick(onClick)}
>
{prefix}

{!hideIcon && <WalletIcon type={wallet.type} size={20} />}
Expand Down

0 comments on commit 27486a7

Please sign in to comment.