From 7ab373ecac529d1f8f5efb921bf2a6f131f5e134 Mon Sep 17 00:00:00 2001 From: nymkappa <1612910616@pm.me> Date: Wed, 29 Mar 2023 15:09:38 +0900 Subject: [PATCH] Clip overflowing labels in pool component on mobile --- .../app/components/pool/pool.component.html | 48 +++++++++---------- .../app/components/pool/pool.component.scss | 10 +++- 2 files changed, 33 insertions(+), 25 deletions(-) diff --git a/frontend/src/app/components/pool/pool.component.html b/frontend/src/app/components/pool/pool.component.html index 898e50fc2..e1806086e 100644 --- a/frontend/src/app/components/pool/pool.component.html +++ b/frontend/src/app/components/pool/pool.component.html @@ -92,9 +92,9 @@ - - - + + + @@ -117,9 +117,9 @@
RewardHashrate (24h)Avg HealthRewardHashrate (24h)Avg Health
- - - + + + @@ -143,9 +143,9 @@
RewardHashrate (24h)Avg HealthRewardHashrate (24h)Avg Health
- - - + + + @@ -165,9 +165,9 @@
Blocks 24h1wAllBlocks 24h1wAll
- - - + + + @@ -382,9 +382,9 @@
Blocks 24h1wAllBlocks 24h1wAll
- - - + + + @@ -407,9 +407,9 @@
RewardHashrate (24h)Avg HealthRewardHashrate (24h)Avg Health
- - - + + + @@ -433,9 +433,9 @@
RewardHashrate (24h)Avg HealthRewardHashrate (24h)Avg Health
- - - + + + @@ -458,9 +458,9 @@
Blocks 24h1wAllBlocks 24h1wAll
- - - + + + diff --git a/frontend/src/app/components/pool/pool.component.scss b/frontend/src/app/components/pool/pool.component.scss index 21468773f..92fdc2ef3 100644 --- a/frontend/src/app/components/pool/pool.component.scss +++ b/frontend/src/app/components/pool/pool.component.scss @@ -188,11 +188,19 @@ div.scrollable { } } -.block-count-title { +.data-title { color: #4a68b9; font-size: 14px; } +.clip { + @media (max-width: 576px) { + max-width: 85px; + overflow: hidden; + text-overflow: ellipsis; + } +} + .table-data tr { background-color: transparent; }
Blocks 24h1wAllBlocks 24h1wAll