Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

explorer: Update DataCard's header #1940

Merged
merged 1 commit into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ exports[`Blocks Card > should disable the \`Show More\` button if there is no mo
<h1
class="data-card__header-title"
>
Blocks - 10 Displayed Items
Blocks 10 Displayed Items
</h1>

<button
Expand Down Expand Up @@ -2627,7 +2627,7 @@ exports[`Blocks Card > should disable the \`Show More\` button is the card is in
<h1
class="data-card__header-title"
>
Blocks - 0 Displayed Items
Blocks 0 Displayed Items
</h1>

<button
Expand Down Expand Up @@ -2667,7 +2667,7 @@ exports[`Blocks Card > should render the \`BlocksCard\` component 1`] = `
<h1
class="data-card__header-title"
>
Blocks - 0 Displayed Items
Blocks 0 Displayed Items
</h1>

<button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ exports[`Transactions Card > should disable the \`Show More\` button if the card
<h1
class="data-card__header-title"
>
Transactions - 0 Displayed Items
Transactions 0 Displayed Items
</h1>

<button
Expand Down Expand Up @@ -51,7 +51,7 @@ exports[`Transactions Card > should disable the \`Show More\` button if there is
<h1
class="data-card__header-title"
>
Transactions - 10 Displayed Items
Transactions 10 Displayed Items
</h1>

<button
Expand Down Expand Up @@ -3034,7 +3034,7 @@ exports[`Transactions Card > should render the \`TransactionsCard\` component 1`
<h1
class="data-card__header-title"
>
Transactions - 0 Displayed Items
Transactions 0 Displayed Items
</h1>

<button
Expand Down
2 changes: 1 addition & 1 deletion explorer/src/lib/components/blocks-card/BlocksCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
data={blocks}
{error}
{loading}
title="Blocks - {displayedBlocks.length} Displayed Items"
title="Blocks {displayedBlocks.length} Displayed Items"
headerButtonDetails={{
action: () => loadMoreItems(),
disabled: isLoadMoreDisabled,
Expand Down
3 changes: 1 addition & 2 deletions explorer/src/lib/components/data-card/DataCard.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
}

.data-card__header-title {
font-weight: 400;
text-transform: uppercase;
font-weight: 500;
font-size: 1.125rem;
line-height: 32.2px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
data={txns}
{error}
{loading}
title="Transactions - {displayedTxns.length} Displayed Items"
title="Transactions {displayedTxns.length} Displayed Items"
headerButtonDetails={{
action: () => loadMoreItems(),
disabled: isLoadMoreDisabled,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exports[`Blocks page > should render the Blocks page, start polling for blocks a
<h1
class="data-card__header-title"
>
Blocks - 0 Displayed Items
Blocks 0 Displayed Items
</h1>

<button
Expand Down Expand Up @@ -59,7 +59,7 @@ exports[`Blocks page > should render the Blocks page, start polling for blocks a
<h1
class="data-card__header-title"
>
Blocks - 15 Displayed Items
Blocks 15 Displayed Items
</h1>

<button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exports[`Transactions page > should render the Transactions page, start polling
<h1
class="data-card__header-title"
>
Transactions - 0 Displayed Items
Transactions 0 Displayed Items
</h1>

<button
Expand Down Expand Up @@ -59,7 +59,7 @@ exports[`Transactions page > should render the Transactions page, start polling
<h1
class="data-card__header-title"
>
Transactions - 15 Displayed Items
Transactions 15 Displayed Items
</h1>

<button
Expand Down
Loading