We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03c812b commit 02a4713Copy full SHA for 02a4713
lib/default-theme/Navbar.vue
@@ -58,7 +58,8 @@ export default {
58
if (document.documentElement.clientWidth < MOBILE_DESKTOP_BREAKPOINT) {
59
this.linksWrapMaxWidth = null
60
} else {
61
- this.linksWrapMaxWidth = this.$el.offsetWidth - NAVBAR_VERTICAL_PADDING - this.$refs.siteName.offsetWidth
+ this.linksWrapMaxWidth = this.$el.offsetWidth - NAVBAR_VERTICAL_PADDING -
62
+ (this.$refs.siteName && this.$refs.siteName.offsetWidth || 0)
63
}
64
65
handleLinksWrapWidth()
0 commit comments