From 9635b4b721233d8a86400f190c40e0a5446d4631 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Thu, 30 Mar 2023 16:45:27 +0200 Subject: [PATCH] Dashboard slides fix --- .../include/lib/Dashboard/Manager.php | 2 +- pandora_console/include/styles/dashboards.css | 22 ++++++++++++++----- pandora_console/views/dashboard/slides.php | 2 +- 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/pandora_console/include/lib/Dashboard/Manager.php b/pandora_console/include/lib/Dashboard/Manager.php index 6e2f9a00d8..85497e212f 100644 --- a/pandora_console/include/lib/Dashboard/Manager.php +++ b/pandora_console/include/lib/Dashboard/Manager.php @@ -287,7 +287,7 @@ class Manager implements PublicLogin $this->dashboardId = (int) \get_parameter('dashboardId', 0); if ($this->slides === 1) { - $this->slidesIds = (array) \get_parameter('slidesIds'); + $this->slidesIds = (array) \get_parameter('slidesIds', [get_user_dashboards($config['id_user'])[0]['id']]); $this->cellModeSlides = (int) \get_parameter( 'cellModeSlides', 0 diff --git a/pandora_console/include/styles/dashboards.css b/pandora_console/include/styles/dashboards.css index df35299d27..1a276fcdfd 100644 --- a/pandora_console/include/styles/dashboards.css +++ b/pandora_console/include/styles/dashboards.css @@ -430,7 +430,12 @@ li#search_input_widget { width: auto; } -div#dashboard-controls { +div#dashboard-controls-slides { + width: 720px !important; +} + +div#dashboard-controls, +div#dashboard-controls-slides { position: fixed; z-index: 1; top: 10px; @@ -447,27 +452,32 @@ div#dashboard-controls { padding: 0px 10px; } -div#dashboard-controls div { +div#dashboard-controls div, +div#dashboard-controls-slides div { margin-left: 10px; text-align: center; } -div#dashboard-controls div#dashboard-slides-form-countdown { +div#dashboard-controls div#dashboard-slides-form-countdown, +div#dashboard-controls-slides div#dashboard-slides-form-countdown { flex: 7; } -div#dashboard-controls div#dashboard-slides-name { +div#dashboard-controls div#dashboard-slides-name, +div#dashboard-controls-slides div#dashboard-slides-name { flex: 3; } -div#dashboard-controls div.dashboard-mode { +div#dashboard-controls div.dashboard-mode, +div#dashboard-controls-slides div.dashboard-mode { flex: 1; display: flex; flex-direction: row; justify-content: center; } -div#dashboard-controls div.dashboard-mode a { +div#dashboard-controls div.dashboard-mode a, +div#dashboard-controls-slides div.dashboard-mode a { margin: 0px; } diff --git a/pandora_console/views/dashboard/slides.php b/pandora_console/views/dashboard/slides.php index c2d4f899a7..75c771e2e2 100644 --- a/pandora_console/views/dashboard/slides.php +++ b/pandora_console/views/dashboard/slides.php @@ -28,7 +28,7 @@ global $config; -$output = '
'; +$output = '
'; // Normal view button. $output .= '
';