Skip to content

Commit

Permalink
Added a "left" css style directly into the div that contains the button
Browse files Browse the repository at this point in the history
for the user preferences, so the drop-down doesn't "exit" the screen to
the right.
  • Loading branch information
abonillao98 committed Jul 11, 2023
1 parent 678475c commit 25dcca6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/bootstrap/navigation.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ navbar-dark bg-dark fixed-top navbar-expand-lg navbar-inverse">
% if ( !$_anonymous ) {
<li class="nav-item dropdown">
<a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="fa fa-question"></i>&nbsp;<%=l 'Help' %><span class="caret"></span></a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<div class="dropdown-menu" style="left:-60%;" aria-labelledby="navbarDropdownMenuLink">
<a class="dropdown-item" href="/requirements"><i class="fa fa-cogs"></i>&nbsp;<%=l 'Requirements' %></a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="/about"><i class="fa fa-info-circle"></i>&nbsp;<%=l 'About' %></a>
Expand All @@ -69,7 +69,7 @@ navbar-dark bg-dark fixed-top navbar-expand-lg navbar-inverse">
% if ( !$_anonymous ) {
<li class="nav-item dropdown">
<a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="fa fa-user"></i>&nbsp;<%= $_logged_in %><span class="caret"></span></a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<div class="dropdown-menu" style="left:-60%;" aria-labelledby="navbarDropdownMenuLink">
<a class="dropdown-item" href="/user_settings"><i class="fa fa-cog" aria-hidden="true"></i><%=l 'Settings' %></a>
<a class="dropdown-item" href="/logout"><i class="fa fa-fw fa-power-off"></i><%=l 'Log Out' %></a>
</div>
Expand Down

0 comments on commit 25dcca6

Please sign in to comment.