WIP Mobile and Compact theme styling improvements:

- Fix logout button not displayed in Compact theme
This commit is contained in:
Hadi Nategh 2021-02-23 16:21:38 +01:00
parent e351982be8
commit a67e433396
4 changed files with 4 additions and 6 deletions

View File

@ -1185,7 +1185,7 @@ abstract class Framework extends Framework\Extra
// array of topmenu info items (orders of the items matter) // array of topmenu info items (orders of the items matter)
$topmenu_info_items = [ $topmenu_info_items = [
'user_avatar' => $this->_user_avatar_menu(), 'user_avatar' => $this->_user_avatar_menu(),
'logout' => (Header\UserAgent::mobile() || $GLOBALS['egw_info']['user']['preferences']['common']['theme'] == 'fw_mobile') ? self::_logout_menu() : null, 'logout' => (Header\UserAgent::mobile()) ? self::_logout_menu() : null,
'update' => ($update = Framework\Updates::notification()) ? $update : null, 'update' => ($update = Framework\Updates::notification()) ? $update : null,
'notifications' => ($GLOBALS['egw_info']['user']['apps']['notifications']) ? self::_get_notification_bell() : null, 'notifications' => ($GLOBALS['egw_info']['user']['apps']['notifications']) ? self::_get_notification_bell() : null,
'quick_add' => $vars['quick_add'], 'quick_add' => $vars['quick_add'],

View File

@ -7310,8 +7310,7 @@ img.et2_button_icon[src*="svg"]:hover {
background-size: 24px 24px; background-size: 24px 24px;
display: inline-block; display: inline-block;
} }
body #egw_fw_basecontainer div#egw_fw_topmenu_items ul a#topmenu_home, body #egw_fw_basecontainer div#egw_fw_topmenu_items ul a#topmenu_home {
body #egw_fw_basecontainer div#egw_fw_topmenu_items ul a#topmenu_logout {
display: none; display: none;
} }
body #egw_fw_basecontainer div#egw_fw_topmenu_items ul a#topmenu_home { body #egw_fw_basecontainer div#egw_fw_topmenu_items ul a#topmenu_home {

View File

@ -265,7 +265,7 @@
display: inline-block; display: inline-block;
} }
} }
a#topmenu_home, a#topmenu_logout {display: none;} a#topmenu_home {display: none;}
a#topmenu_home { a#topmenu_home {
background-image: url(../images/topmenu_items/mobile/home.svg); background-image: url(../images/topmenu_items/mobile/home.svg);
display: none; display: none;

View File

@ -7144,8 +7144,7 @@ img.et2_button_icon[src*="svg"]:hover {
background-size: 24px 24px; background-size: 24px 24px;
display: inline-block; display: inline-block;
} }
body #egw_fw_basecontainer div#egw_fw_topmenu_items ul a#topmenu_home, body #egw_fw_basecontainer div#egw_fw_topmenu_items ul a#topmenu_home {
body #egw_fw_basecontainer div#egw_fw_topmenu_items ul a#topmenu_logout {
display: none; display: none;
} }
body #egw_fw_basecontainer div#egw_fw_topmenu_items ul a#topmenu_home { body #egw_fw_basecontainer div#egw_fw_topmenu_items ul a#topmenu_home {