Skip to content

Commit

Permalink
fix: visual fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
emilyjablonski committed Mar 13, 2024
1 parent 87a4a6f commit e65cfd2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doorway-ui-components/src/headers/SiteHeader.scss
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@

.site-header__base-wrapped {
margin-top: 0.2rem;
margin-bottom: var(--bloom-s12);
margin-bottom: var(--bloom-s24);
padding-left: 0;
}

Expand Down
3 changes: 2 additions & 1 deletion doorway-ui-components/src/headers/SiteHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const SiteHeader = (props: SiteHeaderProps) => {
const logoOffset = document.getElementById("site-header-logo")?.offsetLeft
const linksOffset = document.getElementById("site-header-links")?.offsetLeft
if (linksOffset === undefined || logoOffset === undefined) return
return linksOffset === 0
return linksOffset === 0 || linksOffset === logoOffset
? setNavbarClass("site-header__navbar-wrapped")
: setNavbarClass("site-header__navbar-inline")
}
Expand All @@ -73,6 +73,7 @@ const SiteHeader = (props: SiteHeaderProps) => {
const DESKTOP_MIN_WIDTH = props.desktopMinWidth || 767 // @screen md
// Enables toggling off navbar links when entering mobile
useLayoutEffect(() => {
console.log("useLayoutEffect")
const updateMedia = () => {
if (window.innerWidth > DESKTOP_MIN_WIDTH) {
setIsDesktop(true)
Expand Down

0 comments on commit e65cfd2

Please sign in to comment.