Skip to content

Commit

Permalink
Float network right even without close/back button
Browse files Browse the repository at this point in the history
  • Loading branch information
JunichiSugiura committed Jan 14, 2025
1 parent 4858f01 commit 351269b
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ export function TopBar({
);

return (
<div className="flex items-center justify-between absolute top-0 left-0 right-0 h-14 p-0.5 z-50 p-2">
{onBack ? (
<BackButton onClick={onBack} />
) : (
<CloseButton onClose={onClose} />
)}
<div className="flex items-center justify-between absolute top-0 left-0 right-0 h-14 p-2 z-50">
<div>
{onBack ? (
<BackButton onClick={onBack} />
) : (
<CloseButton onClose={onClose} />
)}
</div>

<div className="flex items-center gap-2">
{!hideNetwork && chainId && <Network chainId={chainId} />}
Expand Down

0 comments on commit 351269b

Please sign in to comment.