From d5a37c535e3dec35eaad4b4d87a61aba8003ca72 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 23 Feb 2021 10:15:16 +0000 Subject: [PATCH] Update horizontal card to preserve white space and fix crashing when a URL isn't entered --- packages/standard-components/src/CardHorizontal.svelte | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/standard-components/src/CardHorizontal.svelte b/packages/standard-components/src/CardHorizontal.svelte index 5d7596e296..523d796cf5 100644 --- a/packages/standard-components/src/CardHorizontal.svelte +++ b/packages/standard-components/src/CardHorizontal.svelte @@ -40,7 +40,7 @@

{subtext}

{linkText} + href={linkUrl || '/'}>{linkText} @@ -71,6 +71,7 @@ font-size: 1rem; font-weight: 700; margin: 0; + white-space: pre-wrap; } .text { @@ -78,6 +79,7 @@ margin: 0.5rem 0 0 0; font-weight: 400; line-height: 1.25rem; + white-space: pre-wrap; } footer { @@ -91,6 +93,7 @@ margin: 0; font-weight: 400; color: #757575; + white-space: pre-wrap; } a { @@ -99,7 +102,7 @@ color: var(--linkColor); font-weight: 600; font-size: 0.85rem; - margin: 0; + white-space: pre-wrap; } a:hover {