Skip to content

Commit abcbcd0

Browse files
committed
[Dashboard] Fix HStack (#4984)
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on enhancing the layout of various components in the dashboard by adding `items-center` and `gap-2` classes to `div` elements with the `flex` class. This improves vertical alignment and spacing between elements. ### Detailed summary - Added `items-center` and `gap-2` classes to multiple `div` elements in: - `airdrop-upload.tsx` - `AccountForm.tsx` - `snapshot-upload.tsx` - `index.tsx` - `Steps.tsx` - `DowngradeDialog.tsx` - `PlanCard.tsx` - `batch-table.tsx` - `UsagePage.tsx` - `Header.tsx` - `Plan.tsx` > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 3d201fc commit abcbcd0

File tree

12 files changed

+14
-14
lines changed

12 files changed

+14
-14
lines changed

apps/dashboard/src/app/team/[team_slug]/(team)/~/usage/UsagePage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const SettingsUsagePage = () => {
2323
<div className="flex flex-col gap-8">
2424
<div className="flex flex-col">
2525
<h1 className="mb-2 font-semibold text-3xl tracking-tight">Usage</h1>
26-
<div className="flex flex-col items-start justify-between lg:flex-row lg:items-center">
26+
<div className="flex flex-col items-start justify-between gap-2 lg:flex-row lg:items-center">
2727
<BillingPlan account={account} />
2828
<BillingPeriod account={account} usage={usageQuery.data} />
2929
</div>

apps/dashboard/src/components/onboarding/Steps.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ export const OnboardingSteps: React.FC<OnboardingStepsProps> = ({
283283
>
284284
<Heading size="title.sm">{title}</Heading>
285285
<Text>{description}</Text>
286-
<div className="mt-4 flex flex-row items-center">
286+
<div className="mt-4 flex flex-row items-center gap-2">
287287
{isLoggedIn ? (
288288
<Button
289289
size="sm"

apps/dashboard/src/components/settings/Account/AccountForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export const AccountForm: React.FC<AccountFormProps> = ({
220220

221221
<div
222222
className={cn(
223-
"flex w-full flex-row",
223+
"flex w-full flex-row items-center gap-2",
224224
showBillingButton ? "justify-between" : "justify-end",
225225
)}
226226
>

apps/dashboard/src/components/settings/Account/Billing/DowngradeDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export const BillingDowngradeDialog: React.FC<BillingDowngradeDialogProps> = ({
6565
<Flex flexDir="column" gap={2}>
6666
{oldPlanFeatures.map((feat) => (
6767
<div
68-
className="flex flex-row"
68+
className="flex flex-row items-center gap-2"
6969
key={Array.isArray(feat) ? feat[0] : feat}
7070
>
7171
<Icon as={FiX} boxSize={4} color="red.500" />

apps/dashboard/src/components/settings/Account/Billing/Header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const BillingHeader: React.FC<BillingHeaderProps> = ({
1717
Billing Info
1818
</Heading>
1919

20-
<div className="flex flex-row">
20+
<div className="flex flex-row items-center gap-2">
2121
<Text size="body.md">
2222
Manage your payment methods, billing information and invoices.
2323
</Text>
@@ -29,7 +29,7 @@ export const BillingHeader: React.FC<BillingHeaderProps> = ({
2929
py={1.5}
3030
textTransform="capitalize"
3131
>
32-
<span className="flex flex-row">
32+
<span className="flex flex-row items-center gap-2">
3333
<Icon
3434
as={
3535
validPayment

apps/dashboard/src/components/settings/Account/Billing/Plan.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const BillingPlan: React.FC<BillingPlanProps> = ({
2020
}) => {
2121
return (
2222
<Flex direction={direction} gap={3}>
23-
<div className="flex flex-row">
23+
<div className="flex flex-row items-center gap-2">
2424
<Text color={titleColor} size={titleSize}>
2525
Your current plan is
2626
</Text>
@@ -35,7 +35,7 @@ export const BillingPlan: React.FC<BillingPlanProps> = ({
3535
</Badge>
3636
</div>
3737

38-
<div className="flex flex-row">
38+
<div className="flex flex-row items-center gap-2">
3939
{description && <Text>{description}</Text>}
4040

4141
<TrackedLink

apps/dashboard/src/components/settings/Account/Billing/PlanCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const BillingPlanCard = () => {
1717

1818
return (
1919
<Card as={Flex} flexDir="column" gap={2}>
20-
<div className="flex flex-row">
20+
<div className="flex flex-row items-center gap-2">
2121
<Heading size="title.xs">Your current plan is</Heading>
2222
<Badge
2323
borderRadius="md"

apps/dashboard/src/components/settings/Account/Billing/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export const Billing: React.FC<BillingProps> = ({ account, teamId }) => {
142142
return [
143143
{
144144
title: (
145-
<div className="flex flex-row justify-between">
145+
<div className="flex flex-row items-center justify-between gap-2">
146146
<Heading
147147
size="label.md"
148148
opacity={!stepsCompleted.account ? 1 : 0.6}

apps/dashboard/src/contract-ui/tabs/claim-conditions/components/snapshot-upload.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ const SnapshotTableColumns = [
427427
return address;
428428
}
429429
return (
430-
<div className="flex flex-row">
430+
<div className="flex flex-row items-center gap-2">
431431
<Tooltip
432432
label={
433433
address.startsWith("0x")

apps/dashboard/src/contract-ui/tabs/nfts/components/airdrop-upload.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ const AirdropTable: React.FC<AirdropTableProps> = ({ data, portalRef }) => {
335335
return address;
336336
}
337337
return (
338-
<div className="flex flex-row">
338+
<div className="flex flex-row items-center gap-2">
339339
<Tooltip
340340
label={
341341
address.startsWith("0x")

0 commit comments

Comments
 (0)