Skip to content

Commit 738edde

Browse files
committed
fix(layout): order top nav as Blog, Wallet, Rewards
Remove justify-between split that pushed Wallet to the far right; use a single row flex list.
1 parent e9c4839 commit 738edde

File tree

2 files changed

+16
-18
lines changed

2 files changed

+16
-18
lines changed

src/app/[locale]/[username]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default function WalletPage() {
5454
isMyAccount={isMyAccount}
5555
/>
5656

57-
{/* Top Navigation - Blog | Rewards | Wallet */}
57+
{/* Top Navigation - Blog | Wallet | Rewards */}
5858
<TopNav
5959
accountname={urlUsername}
6060
activeSection="transfers"

src/components/layout/user-profile-banner.tsx

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ export function TopNav({ accountname, socialUrl = 'https://steemit.com', activeS
112112
return (
113113
<div className="UserProfile__top-nav">
114114
<div className="max-w-6xl mx-auto px-4">
115-
<div className="flex items-center justify-between py-2">
116-
<ul className="flex gap-1">
115+
<div className="flex items-center py-2">
116+
<ul className="flex flex-wrap items-center gap-1">
117117
<li>
118118
<a
119119
href={`${socialUrl}/@${accountname}`}
@@ -124,6 +124,19 @@ export function TopNav({ accountname, socialUrl = 'https://steemit.com', activeS
124124
Blog <ExternalLink className="size-3" />
125125
</a>
126126
</li>
127+
<li>
128+
<a
129+
href={`/@${accountname}/transfers`}
130+
className={cn(
131+
'inline-block px-3 py-2 text-sm font-medium transition-colors',
132+
isWalletActive
133+
? 'font-bold text-foreground'
134+
: 'text-muted-foreground hover:text-foreground'
135+
)}
136+
>
137+
Wallet
138+
</a>
139+
</li>
127140
<li>
128141
<DropdownMenu>
129142
<DropdownMenuTrigger
@@ -147,21 +160,6 @@ export function TopNav({ accountname, socialUrl = 'https://steemit.com', activeS
147160
</DropdownMenu>
148161
</li>
149162
</ul>
150-
<ul className="flex gap-1">
151-
<li>
152-
<a
153-
href={`/@${accountname}/transfers`}
154-
className={cn(
155-
'inline-block px-3 py-2 text-sm font-medium transition-colors',
156-
isWalletActive
157-
? 'font-bold text-foreground'
158-
: 'text-muted-foreground hover:text-foreground'
159-
)}
160-
>
161-
Wallet
162-
</a>
163-
</li>
164-
</ul>
165163
</div>
166164
</div>
167165
</div>

0 commit comments

Comments
 (0)