Skip to content

Commit

Permalink
Fix state switcher menu going off screen (gwpy#402)
Browse files Browse the repository at this point in the history
Co-authored-by: Evan Goetz <[email protected]>
  • Loading branch information
eagoetz and Evan Goetz authored Mar 27, 2024
1 parent ceb5417 commit e20f483
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gwsumm/html/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def state_switcher(states, default=0):
id_='states', role='button', title='Show/hide state menu',
**{'data-bs-toggle': 'dropdown'})
page.div(
class_='dropdown-menu dropdown-menu-right state-switch shadow',
class_='dropdown-menu dropdown-menu-end state-switch shadow',
id_='statemenu',
)
page.h6('Select below to view this page in another state (different '
Expand Down
2 changes: 1 addition & 1 deletion gwsumm/html/tests/test_bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def test_state_switcher():
'<ul class="nav navbar-nav">\n<li class="nav-item dropdown">\n'
'<a class="nav-link dropdown-toggle" href="#" id="states" role='
'"button" title="Show/hide state menu" data-bs-toggle="dropdown">Test'
'</a>\n<div class="dropdown-menu dropdown-menu-right state-switch '
'</a>\n<div class="dropdown-menu dropdown-menu-end state-switch '
'shadow" id="statemenu">\n<h6 class="dropdown-header">Select below to '
'view this page in another state (different time segments).</h6>\n'
'<div class="dropdown-divider"></div>\n<a class="dropdown-item state" '
Expand Down

0 comments on commit e20f483

Please sign in to comment.