1
0
Fork 0
mirror of synced 2024-07-08 15:56:23 +12:00

Update horizontal 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:15:16 +00:00
parent 22adf9eb5a
commit cddca2ae1e

View file

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