Skip to content

Commit

Permalink
Fix #1920 by allowing text to wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrahn committed May 8, 2024
1 parent ab0b91f commit 9c819bb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion _sass/_masthead.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
white-space: nowrap;

&--lg {
padding-right: 2em;
padding-right: 3em;
font-weight: 700;
}
}
4 changes: 3 additions & 1 deletion _sass/_navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,15 @@

button {
position: absolute;
height: 100%;
height: 2.5rem;
right: 0;
padding: 0 0.5rem;
border: 0;
outline: none;
background-color: $primary-color;
color: #fff;
cursor: pointer;
z-index: 100;
}

.visible-links {
Expand All @@ -210,6 +211,7 @@

&:first-child {
font-weight: bold;
text-wrap: wrap;

a {
margin-left: 0;
Expand Down
2 changes: 1 addition & 1 deletion assets/js/main.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/plugins/jquery.greedy-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function updateNav() {
breaks.push($vlinks.width());

// Move item to the hidden list
$vlinks.children().last().prependTo($hlinks);
$vlinks.children('*:not(.masthead__menu-item--lg)').last().prependTo($hlinks);

// Show the dropdown btn
if($btn.hasClass('hidden')) {
Expand Down

0 comments on commit 9c819bb

Please sign in to comment.