From 174dfbaa4f689cad1d08681cd4c4bdbebb43813d Mon Sep 17 00:00:00 2001 From: jejolare Date: Mon, 16 Dec 2024 01:14:06 +0700 Subject: [PATCH] fix burn icon --- .../default/StatsPanel/StatsPanel.module.scss | 13 +++++-- .../default/StatsPanel/StatsPanel.tsx | 39 ++++++++++--------- 2 files changed, 30 insertions(+), 22 deletions(-) diff --git a/src/components/default/StatsPanel/StatsPanel.module.scss b/src/components/default/StatsPanel/StatsPanel.module.scss index ada5900..0eab9f5 100644 --- a/src/components/default/StatsPanel/StatsPanel.module.scss +++ b/src/components/default/StatsPanel/StatsPanel.module.scss @@ -189,10 +189,15 @@ align-items: center; gap: 8px; - > p { - font-size: 25px; - font-weight: 300; - text-align: center; + div { + display: flex; + flex-direction: column; + align-items: center; + > p { + font-size: 25px; + font-weight: 300; + text-align: center; + } } } diff --git a/src/components/default/StatsPanel/StatsPanel.tsx b/src/components/default/StatsPanel/StatsPanel.tsx index dec9697..f798a04 100644 --- a/src/components/default/StatsPanel/StatsPanel.tsx +++ b/src/components/default/StatsPanel/StatsPanel.tsx @@ -52,15 +52,15 @@ function StatsPanel(props: { visibilityInfo?: VisibilityInfo | null, fetchedInfo const { title, amount, percent, customCurrency } = props; const isAmountString = typeof amount === "string"; - + return (

{title}

- {isAmountString - ?

{amount + (!customCurrency ? " ZANO" : "")}

+ {isAmountString + ?

{amount + (!customCurrency ? " ZANO" : "")}

: amount } {percent && @@ -96,26 +96,29 @@ function StatsPanel(props: { visibilityInfo?: VisibilityInfo | null, fetchedInfo function InfoTop() { return (
- - - - -

{zanoBurned} ZANO

+
+

{zanoBurned}

+

ZANO

+
} /> @@ -126,7 +129,7 @@ function StatsPanel(props: { visibilityInfo?: VisibilityInfo | null, fetchedInfo return ( <>
- {state.netMode === "MAIN" && !props.noStats && } + {state.netMode === "MAIN" && !props.noStats && }

{infoHeight}

@@ -136,7 +139,7 @@ function StatsPanel(props: { visibilityInfo?: VisibilityInfo | null, fetchedInfo

PoS: {posDiff}

- +

PoW: {powDiff}

@@ -153,7 +156,7 @@ function StatsPanel(props: { visibilityInfo?: VisibilityInfo | null, fetchedInfo

PoS: {posValue} block/day

- +

PoW: {hashrate} GH/sec

@@ -163,7 +166,7 @@ function StatsPanel(props: { visibilityInfo?: VisibilityInfo | null, fetchedInfo
- {state.netMode === "MAIN" && } + {state.netMode === "MAIN" && }

{infoHeight}

@@ -173,7 +176,7 @@ function StatsPanel(props: { visibilityInfo?: VisibilityInfo | null, fetchedInfo

PoS: {posDiff}

- +

PoW: {powDiff}

@@ -190,7 +193,7 @@ function StatsPanel(props: { visibilityInfo?: VisibilityInfo | null, fetchedInfo

PoS: {posValue} block/day

- +

PoW: {hashrate} GH/sec