Skip to content

Commit

Permalink
explorer: Resolve details pages inconsistencies
Browse files Browse the repository at this point in the history
Resolves #1738
  • Loading branch information
nortonandreev committed May 14, 2024
1 parent a46fd0b commit 73366f2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 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
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(), label: "Back" }}
>
<dl class="block-details__list">
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 @@ -14,5 +14,4 @@
text-transform: uppercase;
font-size: 1.125rem;
line-height: 32.2px;
letter-spacing: -1%;
}

0 comments on commit 73366f2

Please sign in to comment.