diff --git a/includes/templates/UserLinks.mustache b/includes/templates/UserLinks.mustache
index 6ada638f9..f539a6d0b 100644
--- a/includes/templates/UserLinks.mustache
+++ b/includes/templates/UserLinks.mustache
@@ -1,4 +1,5 @@
+ {{#data-user-interface-preferences}}{{>Menu}}{{/data-user-interface-preferences}}
{{#is-anon}}
{{#data-userlinks}}{{{html-create-account}}}{{/data-userlinks}}
diff --git a/resources/skins.vector.styles/components/UserLinks.less b/resources/skins.vector.styles/components/UserLinks.less
index 4883e5517..849bddfe5 100644
--- a/resources/skins.vector.styles/components/UserLinks.less
+++ b/resources/skins.vector.styles/components/UserLinks.less
@@ -115,4 +115,28 @@
.vector-user-links-createaccount {
margin-left: 0.75em;
}
+
+ // Adjust the user-interface-preferences menu.
+ .mw-portlet-user-interface-preferences {
+ margin-top: -0.2em;
+ margin-right: 0;
+ padding: 0;
+
+ // Hide the heading of the user-interface-preferences menu.
+ h3 {
+ display: none;
+ }
+
+ li {
+ font-size: 0.75em;
+
+ a {
+ padding-left: 2em;
+ }
+ }
+
+ ul.vector-menu-content-list {
+ padding-top: 0;
+ }
+ }
}