new feature: display user name on user menu header

revert-4e64f57c
elena 2023-03-08 08:47:23 +00:00
parent 5d32e53081
commit 006add66c4
1 changed files with 12 additions and 0 deletions

View File

@ -67,6 +67,17 @@
.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;
position: relative;
width: 100%;
}
</style>
</head>
<body id="<?php p($_['bodyid']);?>">
@ -123,6 +134,7 @@
<nav class="settings-menu" id="expanddiv" style="display:none;"
aria-label="<?php p($l->t('Settings menu'));?>">
<ul>
<li class="onlytext"><?php p($_['user_displayname']); ?></li>
<?php foreach ($_['settingsnavigation'] as $entry):?>
<li data-id="<?php p($entry['id']); ?>">
<a href="<?php print_unescaped($entry['href']); ?>"