From ac611a45181ac362e63e8ffd24d5d72c1f46e7d1 Mon Sep 17 00:00:00 2001 From: nymkappa Date: Sun, 17 Jul 2022 11:17:48 +0200 Subject: [PATCH] Fix node per as table css --- .../nodes-per-isp-chart.component.html | 26 ++++++------- .../nodes-per-isp-chart.component.scss | 39 +++++++++++++++++++ 2 files changed, 52 insertions(+), 13 deletions(-) diff --git a/frontend/src/app/lightning/nodes-per-isp-chart/nodes-per-isp-chart.component.html b/frontend/src/app/lightning/nodes-per-isp-chart/nodes-per-isp-chart.component.html index 24d634a3f..e37efe25b 100644 --- a/frontend/src/app/lightning/nodes-per-isp-chart/nodes-per-isp-chart.component.html +++ b/frontend/src/app/lightning/nodes-per-isp-chart/nodes-per-isp-chart.component.html @@ -21,28 +21,28 @@
- +
- - - - - + + + + + - - + - - - + + +
RankISPShareNodesCapacityRankISPNodesCapacity
{{ asEntry.rank }} - {{ asEntry.name }} + {{ asEntry.rank }} + {{ asEntry.name }} {{ asEntry.share }}%{{ asEntry.count }}{{ asEntry.count }}
- \ No newline at end of file + diff --git a/frontend/src/app/lightning/nodes-per-isp-chart/nodes-per-isp-chart.component.scss b/frontend/src/app/lightning/nodes-per-isp-chart/nodes-per-isp-chart.component.scss index 832880122..e2a19e6a0 100644 --- a/frontend/src/app/lightning/nodes-per-isp-chart/nodes-per-isp-chart.component.scss +++ b/frontend/src/app/lightning/nodes-per-isp-chart/nodes-per-isp-chart.component.scss @@ -34,3 +34,42 @@ padding-bottom: 65px }; } + +.rank { + width: 20%; + @media (max-width: 576px) { + display: none + } +} + +.name { + width: 20%; + @media (max-width: 576px) { + width: 80%; + max-width: 150px; + padding-left: 0; + padding-right: 0; + } +} + +.share { + width: 20%; + @media (max-width: 576px) { + display: none + } +} + +.nodes { + width: 20%; + @media (max-width: 576px) { + width: 10%; + } +} + +.capacity { + width: 20%; + @media (max-width: 576px) { + width: 10%; + max-width: 100px; + } +} \ No newline at end of file