Skip to content

Commit

Permalink
fix(logo): set width to width of largest logo (#10652)
Browse files Browse the repository at this point in the history
We have three logos: mdn, mdn plus, mdn web docs.

These have different width, which causes the menu to
jump when navigating between these parts of MDN.

By setting a fixed width, we avoid these jumps.
  • Loading branch information
caugner authored Mar 5, 2024
1 parent 40659a8 commit e606646
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/src/ui/atoms/logo/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
.logo {
align-items: center;
display: flex;
// Width of largest logo ("mdn web docs").
width: 160px;

svg {
height: 1.5rem;
Expand Down

0 comments on commit e606646

Please sign in to comment.