Merge "[Quick Fix] Fix Vector 2022 should display a "log in" link on private wikis"

This commit is contained in:
jenkins-bot 2022-09-30 01:36:14 +00:00 committed by Gerrit Code Review
commit a9a8663763
1 changed files with 14 additions and 0 deletions

View File

@ -49,6 +49,20 @@
}
}
// T317789: We expect the user menu to always contain at least a login or logout
// link which are added to the menu in SkinVector::getUserLinksTemplateData.
// Therefore, override the .emptyPortlet class (set by
// SkinTemplate::getPortletData) to display the menu instead of hiding it and
// hide the .user-menu-anon-editor element (if present) as the presence of
// .emptyPortlet suggests that anon users don't have edit permissions.
.vector-user-menu.emptyPortlet {
display: block;
.vector-user-menu-anon-editor {
display: none;
}
}
/**
* Horizontal links menu - logged in and logged out.
*/