mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-03 01:10:17 +01:00
Small fixes to style:
- Fixed player page calendar going out of the box - Fixed night mode background color being applied to world pies
This commit is contained in:
parent
76aac972e7
commit
b1c4416d78
@ -400,7 +400,8 @@ function sessionCalendar(id, events, firstDay) {
|
|||||||
events: events,
|
events: events,
|
||||||
|
|
||||||
navLinks: true,
|
navLinks: true,
|
||||||
height: 'parent',
|
height: 450,
|
||||||
|
contentHeight: 445,
|
||||||
header: {
|
header: {
|
||||||
left: 'title',
|
left: 'title',
|
||||||
center: '',
|
center: '',
|
||||||
@ -557,10 +558,10 @@ function worldMap(id, colorMin, colorMax, mapSeries) {
|
|||||||
function worldPie(id, worldSeries, gmSeries, bgColor) {
|
function worldPie(id, worldSeries, gmSeries, bgColor) {
|
||||||
var defaultTitle = '';
|
var defaultTitle = '';
|
||||||
var defaultSubtitle = 'Click the slices to view used GameMode';
|
var defaultSubtitle = 'Click the slices to view used GameMode';
|
||||||
|
var nightMode = window.localStorage.getItem('nightMode') == 'true';
|
||||||
var chart = Highcharts.chart(id, {
|
var chart = Highcharts.chart(id, {
|
||||||
chart: {
|
chart: {
|
||||||
backgroundColor: bgColor ? bgColor : '#44475a',
|
backgroundColor: nightMode ? (bgColor ? bgColor : '#44475a') : '#fff',
|
||||||
plotBackgroundColor: null,
|
plotBackgroundColor: null,
|
||||||
plotBorderWidth: null,
|
plotBorderWidth: null,
|
||||||
plotShadow: false,
|
plotShadow: false,
|
||||||
|
@ -344,7 +344,7 @@
|
|||||||
class="far fa-fw fa-calendar-alt col-teal"></i>
|
class="far fa-fw fa-calendar-alt col-teal"></i>
|
||||||
Session Calendar</h6>
|
Session Calendar</h6>
|
||||||
</div>
|
</div>
|
||||||
<div class="chart-area" id="sessionCalendar"></div>
|
<div class="chart-area" id="sessionCalendar" style="height: 510px;"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Most Recent Sessions -->
|
<!-- Most Recent Sessions -->
|
||||||
|
Loading…
Reference in New Issue
Block a user