@@ -2265,127 +2265,117 @@
22652265 <!-- WebLN Balance Overview -->
22662266 {#if $weblnConnected }
22672267 <div class =" mb-8 p-6 rounded-2xl bg-input border border-input" >
2268- <div class =" flex items-center justify-between mb-4" >
2269- <div class =" flex items-center gap-2" >
2270- <div
2271- class =" w-6 h-6 rounded-full bg-gradient-to-br from-orange-500 to-amber-500 flex items-center justify-center"
2272- >
2273- <WeblnLogo size ={14 } className =" text-white" />
2274- </div >
2275- <span class =" font-medium text-primary-color" >Balance</span >
2276- </div >
2277- <div class =" flex items-center gap-3" >
2278- <button
2279- class =" flex items-center gap-1 text-sm text-caption hover:text-primary transition-colors cursor-pointer"
2280- on:click ={toggleBalanceVisibility }
2281- title ={$balanceVisible ? ' Hide balance' : ' Show balance' }
2282- >
2283- {#if $balanceVisible }
2284- <EyeSlashIcon size ={16 } />
2285- {:else }
2286- <EyeIcon size ={16 } />
2287- {/if }
2288- </button >
2289- <button
2290- class =" text-caption hover:text-primary transition-colors cursor-pointer disabled:opacity-50"
2291- on:click ={refreshWeblnBalance }
2292- disabled ={weblnBalanceLoading }
2293- title =" Refresh balance"
2294- >
2295- <span class:animate-spin ={weblnBalanceLoading }>
2296- <ArrowsClockwiseIcon size ={16 } />
2297- </span >
2298- </button >
2299- </div >
2300- </div >
23012268 <div class =" flex items-start justify-between mb-2" >
23022269 <div >
23032270 <div class =" text-4xl font-bold text-primary-color flex items-center gap-3" >
2271+ <div
2272+ class =" w-8 h-8 rounded-full bg-gradient-to-br from-orange-500 to-amber-500 flex items-center justify-center flex-shrink-0"
2273+ >
2274+ <WeblnLogo size ={18 } className =" text-white" />
2275+ </div >
23042276 {#if weblnBalanceLoading }
23052277 <span class =" animate-pulse" >...</span >
23062278 {:else if weblnBalance === null }
23072279 <span class =" text-2xl text-caption" >Balance not available</span >
23082280 {:else if $balanceVisible }
23092281 {formatBalance (weblnBalance )}
2310- <span class =" text-lg font-normal text-caption" >sats</span >
23112282 {:else }
2312- *** < span class = " text-lg font-normal text-caption " >sats</ span >
2283+ ***
23132284 {/if }
23142285 </div >
23152286 {#if weblnBalance !== null }
2316- <FiatBalance satoshis ={weblnBalance } visible ={$balanceVisible } />
2287+ <div class =" ml-11" >
2288+ <FiatBalance satoshis ={weblnBalance } visible ={$balanceVisible } />
2289+ </div >
23172290 {/if }
23182291 </div >
2319- <CurrencySelector compact />
2320- </div >
2321- <div class =" text-sm text-caption" >
2322- Active: {$weblnWalletName || ' Browser Wallet' } (WebLN)
2292+ <div class =" flex flex-col items-end gap-2" >
2293+ <CurrencySelector compact />
2294+ <div class =" flex items-center gap-3" >
2295+ <button
2296+ class =" flex items-center gap-1 text-sm text-caption hover:text-primary transition-colors cursor-pointer"
2297+ on:click ={toggleBalanceVisibility }
2298+ title ={$balanceVisible ? ' Hide balance' : ' Show balance' }
2299+ >
2300+ {#if $balanceVisible }
2301+ <EyeSlashIcon size ={16 } />
2302+ {:else }
2303+ <EyeIcon size ={16 } />
2304+ {/if }
2305+ </button >
2306+ <button
2307+ class =" text-caption hover:text-primary transition-colors cursor-pointer disabled:opacity-50"
2308+ on:click ={refreshWeblnBalance }
2309+ disabled ={weblnBalanceLoading }
2310+ title =" Refresh balance"
2311+ >
2312+ <span class:animate-spin ={weblnBalanceLoading }>
2313+ <ArrowsClockwiseIcon size ={16 } />
2314+ </span >
2315+ </button >
2316+ </div >
2317+ </div >
23232318 </div >
23242319 </div >
23252320 {/if }
23262321
23272322 <!-- Balance Overview -->
23282323 {#if $walletConnected && $activeWallet && ! $weblnConnected }
23292324 <div class =" mb-8 p-6 rounded-2xl bg-input border border-input" >
2330- <div class =" flex items-center justify-between mb-4" >
2331- <div class =" flex items-center gap-2" >
2332- <LightningIcon size ={24 } weight =" fill" class =" text-amber-500" />
2333- <span class =" font-medium text-primary-color" >Balance</span >
2334- </div >
2335- <div class =" flex items-center gap-3" >
2336- <button
2337- class =" flex items-center gap-1 text-sm text-caption hover:text-primary transition-colors cursor-pointer"
2338- on:click ={toggleBalanceVisibility }
2339- title ={$balanceVisible ? ' Hide balance' : ' Show balance' }
2340- >
2341- {#if $balanceVisible }
2342- <EyeSlashIcon size ={16 } />
2343- {:else }
2344- <EyeIcon size ={16 } />
2345- {/if }
2346- </button >
2347- <button
2348- class =" text-caption hover:text-primary transition-colors cursor-pointer disabled:opacity-50"
2349- on:click ={() => refreshBalance ()}
2350- disabled ={$walletLoading }
2351- title =" Refresh balance"
2352- >
2353- <span class:animate-spin ={$walletLoading }>
2354- <ArrowsClockwiseIcon size ={16 } />
2355- </span >
2356- </button >
2357- </div >
2358- </div >
23592325 <div class =" flex items-start justify-between mb-2" >
23602326 <div >
23612327 <div class =" text-4xl font-bold text-primary-color flex items-center gap-3" >
2328+ <LightningIcon size ={32 } weight =" fill" class =" text-amber-500 flex-shrink-0" />
23622329 {#if $walletLoading || $walletBalance === null }
23632330 <span class =" animate-pulse" >...</span >
23642331 {:else if $balanceVisible }
23652332 {formatBalance ($walletBalance )}
2366- <span class =" text-lg font-normal text-caption" >sats</span >
23672333 {:else }
2368- *** < span class = " text-lg font-normal text-caption " >sats</ span >
2334+ ***
23692335 {/if }
23702336 </div >
2371- <FiatBalance satoshis ={$walletBalance } visible ={$balanceVisible } />
2337+ <div class =" ml-11" >
2338+ <FiatBalance satoshis ={$walletBalance } visible ={$balanceVisible } />
2339+ </div >
23722340 <!-- Syncing indicator when Spark wallet balance is zero -->
23732341 {#if $activeWallet ?.kind === 4 && $walletBalance === 0n && $sparkSyncing }
2374- <div class =" text-xs text-caption flex items-center gap-1 mt-1" >
2342+ <div class =" text-xs text-caption flex items-center gap-1 mt-1 ml-11 " >
23752343 <ArrowsClockwiseIcon size ={12 } class =" animate-spin" />
23762344 Syncing wallet...
23772345 </div >
23782346 {/if }
23792347 </div >
2380- <CurrencySelector compact />
2381- </div >
2382- <div class =" text-sm text-caption mb-4" >
2383- Active: {$activeWallet .name } ({getWalletKindName ($activeWallet .kind )})
2348+ <div class =" flex flex-col items-end gap-2" >
2349+ <CurrencySelector compact />
2350+ <div class =" flex items-center gap-3" >
2351+ <button
2352+ class =" flex items-center gap-1 text-sm text-caption hover:text-primary transition-colors cursor-pointer"
2353+ on:click ={toggleBalanceVisibility }
2354+ title ={$balanceVisible ? ' Hide balance' : ' Show balance' }
2355+ >
2356+ {#if $balanceVisible }
2357+ <EyeSlashIcon size ={16 } />
2358+ {:else }
2359+ <EyeIcon size ={16 } />
2360+ {/if }
2361+ </button >
2362+ <button
2363+ class =" text-caption hover:text-primary transition-colors cursor-pointer disabled:opacity-50"
2364+ on:click ={() => refreshBalance ()}
2365+ disabled ={$walletLoading }
2366+ title =" Refresh balance"
2367+ >
2368+ <span class:animate-spin ={$walletLoading }>
2369+ <ArrowsClockwiseIcon size ={16 } />
2370+ </span >
2371+ </button >
2372+ </div >
2373+ </div >
23842374 </div >
23852375
23862376 <!-- Send/Receive buttons - only for NWC and Spark wallets -->
23872377 {#if $activeWallet .kind !== 1 }
2388- <div class =" flex gap-3" >
2378+ <div class =" flex gap-3 mt-4 " >
23892379 <button
23902380 class =" flex-1 flex items-center justify-center gap-2 py-3 px-4 rounded-xl bg-amber-500 hover:bg-amber-600 text-white font-medium transition-colors"
23912381 on:click ={() => {
25702560 <p class =" text-2xl font-bold mb-1" style =" color: var(--color-text-primary)" >
25712561 {#if $balanceVisible }
25722562 {$bitcoinConnectBalance .toLocaleString ()}
2573- <span class =" text-sm font-normal text-caption" >sats</span >
25742563 {:else }
2575- *** < span class = " text-sm font-normal text-caption " >sats</ span >
2564+ ***
25762565 {/if }
25772566 </p >
25782567 {:else }
0 commit comments