Dashboard slides fix

This commit is contained in:
Jonathan 2023-03-30 16:45:27 +02:00
parent 8b04d5981d
commit 9635b4b721
3 changed files with 18 additions and 8 deletions

View File

@ -287,7 +287,7 @@ class Manager implements PublicLogin
$this->dashboardId = (int) \get_parameter('dashboardId', 0); $this->dashboardId = (int) \get_parameter('dashboardId', 0);
if ($this->slides === 1) { 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( $this->cellModeSlides = (int) \get_parameter(
'cellModeSlides', 'cellModeSlides',
0 0

View File

@ -430,7 +430,12 @@ li#search_input_widget {
width: auto; width: auto;
} }
div#dashboard-controls { div#dashboard-controls-slides {
width: 720px !important;
}
div#dashboard-controls,
div#dashboard-controls-slides {
position: fixed; position: fixed;
z-index: 1; z-index: 1;
top: 10px; top: 10px;
@ -447,27 +452,32 @@ div#dashboard-controls {
padding: 0px 10px; padding: 0px 10px;
} }
div#dashboard-controls div { div#dashboard-controls div,
div#dashboard-controls-slides div {
margin-left: 10px; margin-left: 10px;
text-align: center; 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; 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; flex: 3;
} }
div#dashboard-controls div.dashboard-mode { div#dashboard-controls div.dashboard-mode,
div#dashboard-controls-slides div.dashboard-mode {
flex: 1; flex: 1;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: center; 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; margin: 0px;
} }

View File

@ -28,7 +28,7 @@
global $config; global $config;
$output = '<div id="dashboard-controls">'; $output = '<div id="dashboard-controls-slides">';
// Normal view button. // Normal view button.
$output .= '<div>'; $output .= '<div>';