Skip to content

Commit fffb26f

Browse files
authored
Merge pull request #1013 from alexpelan/alexpelan/hamburger-tweak
Fix unecessary ugly scrollbar in hamburger menu
2 parents 956c18c + 328e90b commit fffb26f

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

src/components/TopBar/HamburgerMenu.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,19 @@ const HamburgerMenu = createMenu({
5656
key="social"
5757
>
5858
<a
59-
className="u__icon"
59+
className="u__icon top-bar__menu-item-icon"
6060
href="https://github.com/popcodeorg/popcode"
6161
rel="noopener noreferrer"
6262
target="_blank"
6363
>&#xf09b;</a>
6464
<a
65-
className="u__icon"
65+
className="u__icon top-bar__menu-item-icon"
6666
href="https://twitter.com/popcodeorg"
6767
rel="noopener noreferrer"
6868
target="_blank"
6969
>&#xf099;</a>
7070
<a
71-
className="u__icon"
71+
className="u__icon top-bar__menu-item-icon"
7272
href="https://slack.popcode.org/"
7373
rel="noopener noreferrer"
7474
target="_blank"

src/css/application.css

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ body {
195195
min-width: 100%;
196196
max-height: 50vh;
197197
max-width: 30em;
198-
overflow: scroll;
198+
overflow: auto;
199199
}
200200

201201
.top-bar__menu-item {
@@ -212,11 +212,14 @@ body {
212212
}
213213

214214
.top-bar__menu-item_icons {
215-
letter-spacing: 1.5em;
216-
margin-right: -1.5em;
217215
text-align: center;
218216
}
219217

218+
.top-bar__menu-item-icon {
219+
padding-left: 0.75em;
220+
padding-right: 0.75em;
221+
}
222+
220223
.top-bar__menu-item:hover,
221224
.top-bar__menu-item_active {
222225
background-color: var(--color-low-contrast-gray);

0 commit comments

Comments
 (0)