Skip to content

Commit a7ed306

Browse files
GuillaumeGomezsyphar
authored andcommitted
Prevent width to go bigger than viewport
1 parent 5cb53bd commit a7ed306

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

templates/style/_navbar.scss

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,12 @@ div.nav-container {
9999
}
100100

101101
form.landing-search-form-nav {
102-
max-width: 1200px;
102+
width: 100%;
103103
height: 100%;
104104
display: flex;
105105
flex-direction: row;
106106

107107
#search-input-nav {
108-
max-width: 150px;
109108
display: none;
110109
border-left: 1px solid var(--color-border);
111110
height: 100%;
@@ -127,7 +126,7 @@ div.nav-container {
127126

128127
input, select {
129128
border: none;
130-
margin: 0 1em 0 0;
129+
margin: 0;
131130
font-size: 12.8px;
132131
box-shadow: none;
133132
background-color: var(--color-background);
@@ -268,13 +267,6 @@ div.nav-container {
268267
&.not-latest.yanked {
269268
$medium-width: 1191px;
270269

271-
// Because this message is very long, steal some additional space from the search input
272-
#search-input-nav {
273-
@media screen and (min-width: #{$medium-width}) {
274-
max-width: 150px;
275-
}
276-
}
277-
278270
@include navbar-menu-labels($medium-width, $full-width, $show-full: false);
279271
}
280272
}

0 commit comments

Comments
 (0)