diff --git a/static/src/app/app.routing.ts b/static/src/app/app.routing.ts index 06eecf2..c9ed43c 100644 --- a/static/src/app/app.routing.ts +++ b/static/src/app/app.routing.ts @@ -58,14 +58,14 @@ export const appRoutes: Routes = [ }, /** Redirect Configuration **/ - // { - // path: '404', - // component: NotFoundComponent - // }, - // { - // path: '**', - // redirectTo: '/404' - // } // always configure this last - first matching route gets processed + { + path: '404', + component: NotFoundComponent + }, + { + path: '**', + redirectTo: '/404' + } // always configure this last - first matching route gets processed ]; export const appRouting = RouterModule.forRoot(appRoutes); diff --git a/static/src/app/statistic/war-detail-fraction/war-detail-fraction.component.css b/static/src/app/statistic/war-detail-fraction/war-detail-fraction.component.css index ac69342..eff3b2f 100644 --- a/static/src/app/statistic/war-detail-fraction/war-detail-fraction.component.css +++ b/static/src/app/statistic/war-detail-fraction/war-detail-fraction.component.css @@ -1,97 +1,3 @@ -.vertical-spacer { - height: 205px; - float: left; - width: 4%; -} - -.head-field { - font-size: 24px; - margin-top: 10px; - margin-bottom: 10px; -} - -@media screen and (min-width: 1500px) { - .vertical-spacer { - width: 15%; - } -} - -@media screen and (min-width: 2000px) { - .vertical-spacer { - width: 20%; - } -} - -.overview { - overflow-y: scroll; - overflow-x: hidden; - border-left: thin solid lightgrey; - bottom: 20px; - height: 100vh; -} - -.player-name { - font-weight: bold; -} - -/* ########### TABS ########### */ - -:host /deep/ .nav-tabs { - padding-left: 35% !important; -} - -:host /deep/ .nav-link { - background: #4b4b4b; - color: white; -} - -:host /deep/ .nav-link:hover { - background: #afafaf; - color: #000; -} - -:host /deep/ .nav-tabs > li.active > a { - background: #222222; - color: white; -} - -/* ########### DATATABLE ########### */ - -:host /deep/ .datatable-header { - background: #222222; - font-weight: 700; - border-radius: 10px 10px 0 0; - color: white; -} - -:host /deep/ span.datatable-header-cell-label, :host /deep/ div.datatable-body-cell-label { - padding-left: 8px; -} - -:host /deep/ .ngx-datatable .datatable-header { - /*vertical center alignment*/ - display: table-cell; - vertical-align: middle; -} - -:host /deep/ .ngx-datatable .datatable-body .datatable-body-row > div { - /*vertical alignment*/ - position: relative; - top: 10px; -} - -:host /deep/ .datatable-body-row { - color: #222222; - border-bottom: 1px solid grey; - cursor: pointer; -} - -:host /deep/ .datatable-body-row:hover { - background-color: #f7f7f7; -} - -/* ########### CHART-TAB ######## */ - .btn-dark { background: #4b4b4b; color: #f5f5f5; @@ -117,13 +23,10 @@ } .chart-select-group { - width: 50%; + width: 980px; margin: auto; - position: inherit; - display: block; - vertical-align: middle; } /*.dropdown-menu > li > a {*/ - /*cursor: pointer;*/ +/*cursor: pointer;*/ /*}*/ diff --git a/static/src/app/statistic/war-detail-fraction/war-detail-fraction.component.html b/static/src/app/statistic/war-detail-fraction/war-detail-fraction.component.html index 82719c5..dec5e6c 100644 --- a/static/src/app/statistic/war-detail-fraction/war-detail-fraction.component.html +++ b/static/src/app/statistic/war-detail-fraction/war-detail-fraction.component.html @@ -18,22 +18,25 @@
-
- - - - - - - - +
+
+ + + + + + + + +
diff --git a/static/src/app/statistic/war-detail-header/war-detail-header.component.css b/static/src/app/statistic/war-detail-header/war-detail-header.component.css index 9273124..0d69397 100644 --- a/static/src/app/statistic/war-detail-header/war-detail-header.component.css +++ b/static/src/app/statistic/war-detail-header/war-detail-header.component.css @@ -22,6 +22,11 @@ background: #4b4b4b; } +.nav-tabs > li:not(.active) > a:hover { + background: #afafaf; + color: #f5f5f5; +} + .nav-link { cursor: pointer !important; color: #FFF !important; diff --git a/static/src/app/statistic/war-detail-header/war-detail-header.component.html b/static/src/app/statistic/war-detail-header/war-detail-header.component.html index c0f77ec..372076c 100644 --- a/static/src/app/statistic/war-detail-header/war-detail-header.component.html +++ b/static/src/app/statistic/war-detail-header/war-detail-header.component.html @@ -50,21 +50,24 @@
- - - - - - - +
+ + + + +
diff --git a/static/src/app/statistic/war-detail-header/war-detail-header.component.ts b/static/src/app/statistic/war-detail-header/war-detail-header.component.ts index f17b40c..b87f166 100644 --- a/static/src/app/statistic/war-detail-header/war-detail-header.component.ts +++ b/static/src/app/statistic/war-detail-header/war-detail-header.component.ts @@ -17,6 +17,8 @@ export class WarDetailHeaderComponent { war: War; + tab: number; + fractionFilterSelected: string; playerChart: any[] = []; @@ -35,6 +37,7 @@ export class WarDetailHeaderComponent { .filter(id => id != undefined) .flatMap(id => this.warService.getWar(id)) .subscribe(war => { + this.tab = 0; this.war = war; this.fractionFilterSelected = undefined; this.playerChart = ChartUtils.getSingleDataArray(Fraction.OPFOR, war.playersOpfor, Fraction.BLUFOR, war.playersBlufor); diff --git a/static/src/app/statistic/war-detail/war-detail.component.css b/static/src/app/statistic/war-detail/war-detail.component.css index 5716be4..96409fd 100644 --- a/static/src/app/statistic/war-detail/war-detail.component.css +++ b/static/src/app/statistic/war-detail/war-detail.component.css @@ -104,5 +104,5 @@ } /*.dropdown-menu > li > a {*/ - /*cursor: pointer;*/ +/*cursor: pointer;*/ /*}*/ diff --git a/static/src/app/statistic/war-detail/war-detail.component.html b/static/src/app/statistic/war-detail/war-detail.component.html index 780c37d..335fb77 100644 --- a/static/src/app/statistic/war-detail/war-detail.component.html +++ b/static/src/app/statistic/war-detail/war-detail.component.html @@ -1,33 +1,33 @@
- - - + + + {{value}} - - - - - {{value === 'BLUFOR' ? fraction.BLUFOR : fraction.OPFOR}} - - - - - - - - - + + + + + {{value === 'BLUFOR' ? fraction.BLUFOR : fraction.OPFOR}} + + + + + + + + +