Skip to content

Commit

Permalink
fix: navbar's regression - siteName null check
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Aug 9, 2018
1 parent 03c812b commit 02a4713
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/default-theme/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ export default {
if (document.documentElement.clientWidth < MOBILE_DESKTOP_BREAKPOINT) {
this.linksWrapMaxWidth = null
} else {
this.linksWrapMaxWidth = this.$el.offsetWidth - NAVBAR_VERTICAL_PADDING - this.$refs.siteName.offsetWidth
this.linksWrapMaxWidth = this.$el.offsetWidth - NAVBAR_VERTICAL_PADDING -
(this.$refs.siteName && this.$refs.siteName.offsetWidth || 0)
}
}
handleLinksWrapWidth()
Expand Down

0 comments on commit 02a4713

Please sign in to comment.