Skip to content

Commit 87c539e

Browse files
committed
style: refactor layout of App and Dataset details headers for improved spacing
1 parent 6d02b7b commit 87c539e

File tree

2 files changed

+31
-26
lines changed

2 files changed

+31
-26
lines changed

src/routes/$chainSlug/_layout/app/$appAddress.tsx

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,22 @@ function AppsRoute() {
5656
return (
5757
<div className="mt-8 flex flex-col gap-6">
5858
<SearcherBar className="py-10" />
59+
<div className="space-y-2">
60+
<h1 className="flex items-center gap-2 text-2xl font-extrabold">
61+
<Box size="20" />
62+
App details
63+
{app && isError && (
64+
<span className="text-muted-foreground text-sm font-light">
65+
(outdated)
66+
</span>
67+
)}
68+
{(isLoading || isRefetching) && (
69+
<LoaderCircle className="animate-spin" />
70+
)}
71+
</h1>
72+
<AppBreadcrumbs appId={appAddress} />
73+
</div>
5974

60-
<h1 className="flex items-center gap-2 text-2xl font-extrabold">
61-
<Box size="20" />
62-
App details
63-
{app && isError && (
64-
<span className="text-muted-foreground text-sm font-light">
65-
(outdated)
66-
</span>
67-
)}
68-
{(isLoading || isRefetching) && (
69-
<LoaderCircle className="animate-spin" />
70-
)}
71-
</h1>
72-
<AppBreadcrumbs appId={appAddress} />
7375
<div className="space-y-10">
7476
{hasPastError && !appDetails ? (
7577
<ErrorAlert message="An error occurred during deal details loading." />

src/routes/$chainSlug/_layout/dataset/$datasetAddress.tsx

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,22 @@ function DatasetsRoute() {
5959
<div className="mt-8 flex flex-col gap-6">
6060
<SearcherBar className="py-10" />
6161

62-
<h1 className="flex items-center gap-2 text-2xl font-extrabold">
63-
<Box size="20" />
64-
Dataset details
65-
{dataset && isError && (
66-
<span className="text-muted-foreground text-sm font-light">
67-
(outdated)
68-
</span>
69-
)}
70-
{(isLoading || isRefetching) && (
71-
<LoaderCircle className="animate-spin" />
72-
)}
73-
</h1>
74-
<DatasetBreadcrumbs datasetId={datasetAddress} />
62+
<div className="space-y-2">
63+
<h1 className="flex items-center gap-2 text-2xl font-extrabold">
64+
<Box size="20" />
65+
Dataset details
66+
{dataset && isError && (
67+
<span className="text-muted-foreground text-sm font-light">
68+
(outdated)
69+
</span>
70+
)}
71+
{(isLoading || isRefetching) && (
72+
<LoaderCircle className="animate-spin" />
73+
)}
74+
</h1>
75+
<DatasetBreadcrumbs datasetId={datasetAddress} />
76+
</div>
77+
7578
<div className="space-y-10">
7679
{hasPastError && !datasetDetails ? (
7780
<ErrorAlert message="An error occurred during deal details loading." />

0 commit comments

Comments
 (0)