From 74017c5dc3ba1f132aaf898614056e0fc5355fb2 Mon Sep 17 00:00:00 2001 From: emmm <784406842@qq.com> Date: Tue, 10 Sep 2019 20:53:51 +0800 Subject: [PATCH] fix($theme-default): add text ellipsis to navbar (#1683) (#1840) --- packages/@vuepress/theme-default/components/Navbar.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/@vuepress/theme-default/components/Navbar.vue b/packages/@vuepress/theme-default/components/Navbar.vue index d4f562cf90..f5e12dda3e 100644 --- a/packages/@vuepress/theme-default/components/Navbar.vue +++ b/packages/@vuepress/theme-default/components/Navbar.vue @@ -125,4 +125,9 @@ $navbar-horizontal-padding = 1.5rem display none .links padding-left 1.5rem + .site-name + width calc(100vw - 9.4rem) + overflow hidden + white-space nowrap + text-overflow ellipsis