From 56bbaba44e5213d36df08c2cd1d18eeba310859f Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 23 Feb 2021 10:14:54 +0000 Subject: [PATCH] Update vertical card to preserve white space and fix crashing when a URL isn't entered --- packages/standard-components/src/Card.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/standard-components/src/Card.svelte b/packages/standard-components/src/Card.svelte index 33be4185f7..85f30c5a09 100644 --- a/packages/standard-components/src/Card.svelte +++ b/packages/standard-components/src/Card.svelte @@ -40,7 +40,7 @@ + href={linkUrl || '/'}> {linkText} @@ -71,6 +71,7 @@ font-size: 1.25rem; font-weight: 700; margin: 0; + white-space: pre-wrap; } .text { @@ -78,6 +79,7 @@ margin: 0; font-weight: 400; line-height: 1.5rem; + white-space: pre-wrap; } a { @@ -85,6 +87,7 @@ text-decoration: none; color: var(--linkColor); font-weight: 600; + white-space: pre-wrap; } a:hover {