From 59bf53009999a0739aabb3bc2cf6ec6015a214ce Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Wed, 8 Jun 2022 06:12:11 +0800 Subject: [PATCH] fix(hero): use `pre-wrap` for text and tagline --- src/client/theme-default/components/VPHero.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/theme-default/components/VPHero.vue b/src/client/theme-default/components/VPHero.vue index 51987dc5eb8a..d219794e6401 100644 --- a/src/client/theme-default/components/VPHero.vue +++ b/src/client/theme-default/components/VPHero.vue @@ -115,6 +115,7 @@ defineProps<{ line-height: 40px; font-size: 32px; font-weight: 700; + white-space: pre-wrap; } .VPHero.has-image .name, @@ -161,6 +162,7 @@ defineProps<{ line-height: 28px; font-size: 18px; font-weight: 500; + white-space: pre-wrap; color: var(--vp-c-text-2); }