Skip to content

Commit

Permalink
Navbar on small displays and login link fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed May 4, 2019
1 parent c4fcc96 commit 76cdb6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions classes/output/core_renderer_toolbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public function user_menu($user = null, $withlinks = null) {
}

// Add a class for when $withlinks is false.
$usermenuclasses = 'usermenu nav-link';
$usermenuclasses = 'usermenu';
if (!$withlinks) {
$usermenuclasses .= ' withoutlinks';
}
Expand All @@ -231,7 +231,7 @@ public function user_menu($user = null, $withlinks = null) {
return html_writer::div(
html_writer::span(
$returnstr,
'login'
'login nav-link'
),
$usermenuclasses
);
Expand All @@ -248,7 +248,7 @@ public function user_menu($user = null, $withlinks = null) {
return html_writer::div(
html_writer::span(
$returnstr,
'login'
'login nav-link'
),
$usermenuclasses
);
Expand Down
1 change: 1 addition & 0 deletions scss/theme/_navbar.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Navbar.
.navbar {
flex-wrap: nowrap;
.popover-region {
margin-top: 4px;
}
Expand Down

0 comments on commit 76cdb6f

Please sign in to comment.