Skip to content

Commit 3a35a97

Browse files
committed
fix(wallet): balance align
Signed-off-by: Innei <[email protected]>
1 parent cf08c75 commit 3a35a97

File tree

13 files changed

+27
-751
lines changed

13 files changed

+27
-751
lines changed

apps/renderer/src/modules/boost/boost-certification.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const BoostCertification = ({
2727
<TooltipTrigger asChild>
2828
<i
2929
className={cn(
30-
"i-mgc-rocket-cute-fi ml-1.5 shrink-0 cursor-pointer text-amber-500 hover:bg-amber-400",
30+
"i-mgc-rocket-cute-fi ml-1.5 shrink-0 cursor-button text-theme-accent-500 hover:bg-theme-accent-400",
3131
className,
3232
)}
3333
onClick={(e) => {
@@ -38,9 +38,9 @@ export const BoostCertification = ({
3838
</TooltipTrigger>
3939

4040
<TooltipPortal>
41-
<TooltipContent className="px-4 py-2">
42-
<div className="flex items-center text-base">
43-
<i className="i-mgc-rocket-cute-fi mr-2 shrink-0 text-amber-500" />
41+
<TooltipContent className="px-2 py-1">
42+
<div className="flex items-center text-sm">
43+
<i className="i-mgc-rocket-cute-fi mr-2 shrink-0 text-theme-accent-500 animate-rocket" />
4444
{t("boost.feed_being_boosted")}
4545
</div>
4646
</TooltipContent>

apps/renderer/src/modules/power/my-wallet-section/index.tsx

+1-5
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,7 @@ export const MyWalletSection = ({ className }: { className?: string }) => {
149149
values={{ blockchainName: "VSL" }}
150150
components={{
151151
Balance: (
152-
<Balance
153-
className="align-sub"
154-
withSuffix
155-
value={BigInt(myWallet.todayDailyPower || 0n)}
156-
>
152+
<Balance withSuffix value={BigInt(myWallet.todayDailyPower || 0n)}>
157153
{BigInt(myWallet.todayDailyPower || 0n)}
158154
</Balance>
159155
),

apps/renderer/src/modules/wallet/balance.tsx

+5-3
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ export const Balance = ({
2323
const formattedFull = format(n, { digits: 18, trailingZeros: true })
2424

2525
const Content = (
26-
<div className={cn("inline-flex items-center gap-1 tabular-nums", className)}>
27-
{withSuffix && <i className="i-mgc-power align-text-bottom text-accent" />}
26+
<span className={cn("tabular-nums", className)}>
27+
{withSuffix && (
28+
<i className="i-mgc-power mr-1 translate-y-[-3px] align-text-bottom text-accent" />
29+
)}
2830
<span>{formatted}</span>
29-
</div>
31+
</span>
3032
)
3133

3234
if (!withTooltip) return Content

apps/renderer/src/pages/(external)/(with-layout)/feed/[id]/index.tsx

-11
This file was deleted.

apps/renderer/src/pages/(external)/(with-layout)/layout.tsx

-105
This file was deleted.

apps/renderer/src/pages/(external)/(with-layout)/list/[id]/index.tsx

-11
This file was deleted.

apps/renderer/src/pages/(external)/(with-layout)/profile/[id]/index.tsx

-11
This file was deleted.

apps/renderer/src/pages/(external)/(with-layout)/share/feeds/[id]/index.tsx

-139
This file was deleted.

0 commit comments

Comments
 (0)