1
0
Fork 0
mirror of synced 2024-06-30 12:00:31 +12:00

Update vertical card to preserve white space and fix crashing when a URL isn't entered

This commit is contained in:
Andrew Kingston 2021-02-23 10:14:54 +00:00
parent d3e4921f29
commit 56bbaba44e

View file

@ -40,7 +40,7 @@
<a <a
use:linkable use:linkable
style="--linkColor: {linkColor}; --linkHoverColor: {linkHoverColor}" style="--linkColor: {linkColor}; --linkHoverColor: {linkHoverColor}"
href={linkUrl}> href={linkUrl || '/'}>
{linkText} {linkText}
</a> </a>
</div> </div>
@ -71,6 +71,7 @@
font-size: 1.25rem; font-size: 1.25rem;
font-weight: 700; font-weight: 700;
margin: 0; margin: 0;
white-space: pre-wrap;
} }
.text { .text {
@ -78,6 +79,7 @@
margin: 0; margin: 0;
font-weight: 400; font-weight: 400;
line-height: 1.5rem; line-height: 1.5rem;
white-space: pre-wrap;
} }
a { a {
@ -85,6 +87,7 @@
text-decoration: none; text-decoration: none;
color: var(--linkColor); color: var(--linkColor);
font-weight: 600; font-weight: 600;
white-space: pre-wrap;
} }
a:hover { a:hover {