* Mobile theme: Fix calendar header toolbars are no more visible

This commit is contained in:
hadi 2023-05-16 12:09:48 +02:00
parent 0056adc47d
commit 2b051dac98
3 changed files with 16 additions and 7 deletions

View File

@ -422,7 +422,7 @@ class calendar_uiviews extends calendar_ui
{ {
foreach (array_keys($actions) as $key) foreach (array_keys($actions) as $key)
{ {
if (!in_array($key, array('day_view','week_view','next', 'today','previous'))) { if (!in_array($key, array('next', 'today','previous'))) {
$actions[$key]['toolbarDefault'] = false; $actions[$key]['toolbarDefault'] = false;
} }
else { else {

View File

@ -1035,6 +1035,7 @@ Hide subsequent headers in week view with non-consolidated owners
} }
.calendar_calDayTodosTable tr { .calendar_calDayTodosTable tr {
page-break-inside: avoid; page-break-inside: avoid;
display: flex;
} }
.calendar_calDayTodosTable tr td span:first-child { .calendar_calDayTodosTable tr td span:first-child {
white-space: nowrap; white-space: nowrap;
@ -2709,7 +2710,6 @@ div#calendar-container div.calendar table tbody tr.rowhilite td {
z-index: 1; z-index: 1;
} }
#calendar-toolbar #toolbar-actionlist { #calendar-toolbar #toolbar-actionlist {
margin-left: 60px;
margin-top: 4px; margin-top: 4px;
} }
#calendar-edit #calendar-edit_calendar-edit-details { #calendar-edit #calendar-edit_calendar-edit-details {
@ -2804,6 +2804,7 @@ div#calendar-container div.calendar table tbody tr.rowhilite td {
#calendar-toolbar .nm-mob-header { #calendar-toolbar .nm-mob-header {
width: 100%; width: 100%;
position: absolute; position: absolute;
display: inline-block;
z-index: 100; z-index: 100;
} }
#calendar-toolbar .nm-mob-header .ui-toolbar-menulist button { #calendar-toolbar .nm-mob-header .ui-toolbar-menulist button {
@ -2814,12 +2815,17 @@ div#calendar-container div.calendar table tbody tr.rowhilite td {
width: 50px; width: 50px;
} }
#calendar-toolbar .nm-mob-header #calendar-toolbar_toolbar { #calendar-toolbar .nm-mob-header #calendar-toolbar_toolbar {
width: calc(100% - 100px); display: flex;
display: inline-block;
padding: 0px !important; padding: 0px !important;
min-width: 230px;
justify-content: flex-start;
} }
#calendar-toolbar .nm-mob-header #calendar-toolbar_toolbar #toolbar-actionlist { #calendar-toolbar .nm-mob-header #calendar-toolbar_toolbar #toolbar-actionlist {
margin-left: 0px; margin-left: 0px;
margin-top: 0px;
}
#calendar-toolbar .nm-mob-header #calendar-toolbar_toolbar .et2_toolbar_more {
min-width: 30px;
} }
span#calendar-view_header_dateIndicator { span#calendar-view_header_dateIndicator {
display: block; display: block;

View File

@ -21,7 +21,6 @@
background: #0c5da5; background: #0c5da5;
z-index: 1; z-index: 1;
#toolbar-actionlist { #toolbar-actionlist {
margin-left: 60px;
margin-top: 4px; margin-top: 4px;
} }
} }
@ -103,6 +102,7 @@
.nm-mob-header { .nm-mob-header {
width: 100%; width: 100%;
position: absolute; position: absolute;
display: inline-block;
.ui-toolbar-menulist button {color: black;} .ui-toolbar-menulist button {color: black;}
z-index: 100; z-index: 100;
.et2_searchbox { .et2_searchbox {
@ -110,12 +110,15 @@
width: 50px; width: 50px;
} }
#calendar-toolbar_toolbar{ #calendar-toolbar_toolbar{
width: ~"calc(100% - 100px)"; display: flex;
display: inline-block;
padding: 0px !important; padding: 0px !important;
min-width: 230px;
justify-content: flex-start;
#toolbar-actionlist { #toolbar-actionlist {
margin-left: 0px; margin-left: 0px;
margin-top: 0px;
} }
.et2_toolbar_more {min-width: 30px;}
} }
} }
} }