Skip to content

Commit

Permalink
Merge pull request #1743 from dusk-network/feature-1742
Browse files Browse the repository at this point in the history
explorer: Fix loading state padding
  • Loading branch information
nortonandreev authored May 15, 2024
2 parents 0672d65 + 15d5e24 commit ccab20d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ exports[`DataCard > should render the \`DataCard\` in the loading state 1`] = `
<!--&lt;Button&gt;-->
</header>
<p>
<p
class="data-card__loading-notice"
>
Loading...
</p>
Expand Down
4 changes: 4 additions & 0 deletions explorer/src/lib/components/data-card/DataCard.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
padding: 1rem 0;
}

.data-card__loading-notice {
padding: 0 1.125rem;
}

.data-card__header {
display: flex;
justify-content: space-between;
Expand Down
2 changes: 1 addition & 1 deletion explorer/src/lib/components/data-card/DataCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
/>
</header>
{#if loading && data === null}
<p>Loading...</p>
<p class="data-card__loading-notice">Loading...</p>
{:else if error || hasEmptyData}
<DataAlert on:retry {error} />
{:else if data}
Expand Down

0 comments on commit ccab20d

Please sign in to comment.