Skip to content

Commit 0f818d5

Browse files
committed
chore(staking): tighten up account summary bar
This top bar was taking up a fair amount of space which made it hard for people on smaller screens to realize they could scroll down. This PR tightens things up to hopefully avoid some of the support load from people not realizing that they need to scroll down to interact with the programs
1 parent 6b611c8 commit 0f818d5

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

apps/staking/src/components/AccountSummary/index.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ export const AccountSummary = ({
7676
alt=""
7777
className="absolute -right-40 hidden h-full object-cover object-right [mask-image:linear-gradient(to_right,_transparent,_black_50%)] md:block"
7878
/>
79-
<div className="relative flex flex-col items-start justify-between gap-8 sm:px-6 sm:py-10 md:flex-row md:items-center md:gap-16 lg:px-12 lg:py-20">
79+
<div className="relative flex flex-col items-start justify-between gap-8 sm:p-4 md:flex-row md:items-center md:gap-16 xl:px-8 xl:py-2">
8080
<div>
8181
<div className="mb-2 inline-block border border-neutral-600/50 bg-neutral-900 px-4 py-1 text-xs text-neutral-400 sm:mb-4">
8282
Total Balance
8383
</div>
8484
<div className="flex flex-row items-center gap-8">
8585
<span>
86-
<Tokens className="text-4xl font-light sm:text-6xl">{total}</Tokens>
86+
<Tokens className="text-4xl font-light">{total}</Tokens>
8787
</span>
8888
{lastSlash && (
8989
<p className="max-w-48 text-sm text-red-600">
@@ -402,20 +402,20 @@ const BalanceCategory = ({
402402
}: BalanceCategoryProps) => (
403403
<div
404404
className={clsx(
405-
"flex w-full flex-col justify-between border border-neutral-600/50 bg-pythpurple-800/60 p-4 backdrop-blur sm:p-6 xl:w-80 2xl:w-96",
405+
"flex w-full flex-col justify-between border border-neutral-600/50 bg-pythpurple-800/60 p-4 backdrop-blur sm:px-6 xl:w-80 2xl:w-96",
406406
className,
407407
)}
408408
>
409409
<div>
410-
<div className="mb-4 inline-block border border-neutral-600/50 bg-neutral-900 px-4 py-1 text-xs text-neutral-400">
410+
<div className="mb-2 inline-block border border-neutral-600/50 bg-neutral-900 px-4 py-1 text-xs text-neutral-400">
411411
{name}
412412
</div>
413413
<div>
414414
<Tokens className="text-xl font-light">{amount}</Tokens>
415415
</div>
416-
<div className="mt-4 text-sm text-neutral-500">{description}</div>
416+
<div className="mt-2 text-sm text-neutral-500">{description}</div>
417417
</div>
418-
<div className="mt-4 flex flex-row items-center gap-4">
418+
<div className="mt-2 flex flex-row items-center gap-4">
419419
{action}
420420
{warning && <div className="text-xs text-red-600">{warning}</div>}
421421
</div>

apps/staking/src/components/Dashboard/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export const Dashboard = ({
139139
return (
140140
<>
141141
<main
142-
className={clsx("flex w-full flex-col gap-8 xl:px-4 xl:py-6", {
142+
className={clsx("flex w-full flex-col gap-4 xl:px-4", {
143143
"sm:gap-0": !enableOis,
144144
})}
145145
>
@@ -168,7 +168,7 @@ export const Dashboard = ({
168168
className="group border-neutral-600/50 data-[empty]:my-[5dvh] data-[empty]:border data-[empty]:bg-white/10 data-[empty]:p-4 sm:p-4 data-[empty]:sm:my-0 data-[empty]:sm:border-0 data-[empty]:sm:bg-transparent data-[empty]:sm:p-0"
169169
{...(tab === TabIds.Empty && { "data-empty": true })}
170170
>
171-
<h1 className="my-4 hidden text-center text-xl/tight font-light group-data-[empty]:mb-10 group-data-[empty]:block sm:mb-6 sm:text-3xl group-data-[empty]:sm:mb-6 lg:my-14 lg:text-5xl">
171+
<h1 className="my-4 hidden text-center text-xl/tight font-light group-data-[empty]:mb-10 group-data-[empty]:block sm:mb-6 sm:text-3xl group-data-[empty]:sm:mb-6 lg:my-6 lg:text-5xl">
172172
Choose Your Journey
173173
</h1>
174174
<TabList className="sticky top-header-height z-10 flex flex-row items-stretch justify-center group-data-[empty]:mx-auto group-data-[empty]:max-w-7xl group-data-[empty]:flex-col group-data-[empty]:gap-8 group-data-[empty]:sm:flex-row group-data-[empty]:sm:gap-2">

apps/staking/src/components/Root/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const Root = ({ children }: Props) => (
6060
<body className="grid min-h-dvh grid-rows-[auto_auto_1fr_auto] text-pythpurple-100 [background:radial-gradient(20rem_50rem_at_50rem_10rem,_rgba(119,_49,_234,_0.20)_0%,_rgba(17,_15,_35,_0.00)_100rem),_#0A0814] selection:bg-pythpurple-600/60">
6161
<Header className="z-10" />
6262
<RestrictedRegionBanner />
63-
<MaxWidth className="z-0 min-h-[calc(100dvh_-_var(--header-height))] py-8 sm:min-h-0">
63+
<MaxWidth className="z-0 min-h-[calc(100dvh_-_var(--header-height))] py-4 sm:min-h-0">
6464
{children}
6565
</MaxWidth>
6666
<Footer className="z-10" />

0 commit comments

Comments
 (0)