Skip to content

Commit

Permalink
Merge pull request #1739 from dusk-network/feature-1738
Browse files Browse the repository at this point in the history
explorer: remove block height from Block Details card header
  • Loading branch information
nortonandreev authored May 15, 2024
2 parents ccab20d + 8e8eeee commit 8c02f30
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ exports[`Block Details > renders the Block Details component 1`] = `
<h1
class="data-card__header-title"
>
Block Details - #495,868
Block Details
</h1>
<button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,9 @@ exports[`Blocks Card > should disable the \`Show More\` button is the card is in
<!--&lt;Button&gt;-->
</header>
<p>
<p
class="data-card__loading-notice"
>
Loading...
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ exports[`Transactions Card > should disable the \`Show More\` button if the card
<!--&lt;Button&gt;-->
</header>
<p>
<p
class="data-card__loading-notice"
>
Loading...
</p>
Expand Down
11 changes: 1 addition & 10 deletions explorer/src/lib/components/block-details/BlockDetails.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,8 @@
/** @type {Number} */
let screenWidth = window.innerWidth;
/** @type {string}*/
let blockHeight = "";
$: classes = makeClassName(["block-details", className]);
$: {
if (data) {
blockHeight = `#${formatter(data.header.height)}`;
}
}
onMount(() => {
const resizeObserver = new ResizeObserver((entries) => {
const entry = entries[0];
Expand All @@ -62,7 +53,7 @@
{error}
{loading}
className={classes}
title="Block Details - {blockHeight}"
title="Block Details"
headerButtonDetails={{
action: () => history.back(),
disabled: false,
Expand Down
1 change: 0 additions & 1 deletion explorer/src/lib/components/data-card/DataCard.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,4 @@
text-transform: uppercase;
font-size: 1.125rem;
line-height: 32.2px;
letter-spacing: -1%;
}

0 comments on commit 8c02f30

Please sign in to comment.