From 51ce2a1534ac26823a5bf45166977781cec58feb Mon Sep 17 00:00:00 2001 From: HardiReady Date: Sun, 3 Mar 2019 15:04:42 +0100 Subject: [PATCH] Improve fraction stats and war header mobile display --- .../overview/campaign-overview.component.scss | 1 + .../fraction-stats.component.html | 3 +- .../fraction-stats.component.scss | 28 +++++++++++++++---- .../war/scoreboard/scoreboard.component.scss | 4 +-- .../war/war-header/war-header.component.html | 11 +++++++- .../war/war-header/war-header.component.scss | 15 ++++------ 6 files changed, 41 insertions(+), 21 deletions(-) diff --git a/static/src/app/statistic/campaign/overview/campaign-overview.component.scss b/static/src/app/statistic/campaign/overview/campaign-overview.component.scss index d30640d..150d27f 100644 --- a/static/src/app/statistic/campaign/overview/campaign-overview.component.scss +++ b/static/src/app/statistic/campaign/overview/campaign-overview.component.scss @@ -10,6 +10,7 @@ .slide-chart-container { width: 100%; min-width: unset; + height: 65vh; margin-top: 105px; margin-bottom: 35px; } diff --git a/static/src/app/statistic/war/fraction-stats/fraction-stats.component.html b/static/src/app/statistic/war/fraction-stats/fraction-stats.component.html index 498b206..f563a65 100644 --- a/static/src/app/statistic/war/fraction-stats/fraction-stats.component.html +++ b/static/src/app/statistic/war/fraction-stats/fraction-stats.component.html @@ -1,5 +1,4 @@ -
- +
{{war.ptOpfor}} {{fraction.OPFOR}}
-
+
+

{{'stats.scoreboard.participants' | translate}}

+ {{fraction.BLUFOR}} {{war.playersBlufor}} + vs + {{war.playersOpfor}} {{fraction.OPFOR}} +
+ +

{{'stats.scoreboard.participants' | translate}}

a { margin: 0 !important; + width:100%; } } } @@ -165,12 +166,6 @@ span.tab-control { } } - .head-field-pie-chart { - width: calc(54% - 1.5vw); - padding-left: 10%; - margin-bottom: -8px; - } - .nav-tabs > li { width: 25%; font-size: 12px; @@ -184,7 +179,7 @@ span.tab-control { .nav-tabs > li:last-child { width: fit-content; position: absolute; - margin-top: -48px; - margin-left: 46%; + margin-top: -38px; + margin-left: 27%; } }