From 5d5ef2f8848bba7a7da715c5ca07c423fd32a130 Mon Sep 17 00:00:00 2001 From: elena Date: Wed, 8 Mar 2023 11:32:57 +0000 Subject: [PATCH] displayed nextcloud user menu like moodle and wp applications --- .../themes/dd/core/templates/layout.user.php | 53 +++++++++++++------ 1 file changed, 36 insertions(+), 17 deletions(-) diff --git a/dd-apps/docker/nextcloud/src/themes/dd/core/templates/layout.user.php b/dd-apps/docker/nextcloud/src/themes/dd/core/templates/layout.user.php index e98f890..70453f9 100644 --- a/dd-apps/docker/nextcloud/src/themes/dd/core/templates/layout.user.php +++ b/dd-apps/docker/nextcloud/src/themes/dd/core/templates/layout.user.php @@ -22,6 +22,7 @@ */ $api_url = "https://" . preg_replace('/^nextcloud\./', 'api.', $_SERVER['HTTP_HOST']); $avatar_url = "https://" . preg_replace('/^nextcloud\./', 'sso.', $_SERVER['HTTP_HOST']) . "/auth/realms/master/avatar-provider"; + $profile_url = "https://" . preg_replace('/^nextcloud\./', 'sso.', $_SERVER['HTTP_HOST']) . "/auth/realms/master/account"; // Remove user menu Settings item for non-administrator users if(!array_key_exists('core_apps', $_["settingsnavigation"])){ @@ -67,16 +68,25 @@ .newFileMenu > ul:nth-child(1) > li:nth-child(3) { order: 1; } - #header .header-right > div > .menu.settings-menu > ul li.onlytext { - display: inline-flex; - align-items: center; - height: 44px; - color: var(--color-main-text); - padding: 10px 35px; - box-sizing: border-box; - white-space: nowrap; + #header .header-right>div>.menu:after { + display:none; + } + .ddicon { position: relative; - width: 100%; + left: 8px; + top: 9px; + } + .ddiconcontainer { + margin-right: 16px; + width: 36px; + height: 36px; + background-color: #f0f0f0; + position: relative; + border-radius: 5px; + left: -7px; + } + #expanddiv { + padding: .5rem .7rem; } @@ -134,16 +144,25 @@