Skip to content

Build your personal knowledge base with Trilium Notes

feat(website): improve icon fit

Elian Doranfb7453f7b048
diff --git a/apps/website/src/components/Card.tsx b/apps/website/src/components/Card.tsx
index 035c73e84a..60a39e92ec 100644
--- a/apps/website/src/components/Card.tsx
+++ b/apps/website/src/components/Card.tsx
@@ -18,8 +18,8 @@ export default function Card({ title, children, imageUrl, iconSvg, className, mo
<div className="card-content">
<h3>
- {iconSvg && <><Icon svg={iconSvg} />{" "}</> }
- {title}
+ {iconSvg && <Icon svg={iconSvg} />}{" "}
+ <span>{title}</span>
</h3>
<div className="card-content-inner">
diff --git a/apps/website/src/style.css b/apps/website/src/style.css
index f5fa579640..36588c45d8 100644
--- a/apps/website/src/style.css
+++ b/apps/website/src/style.css
@@ -116,6 +116,11 @@ img {
font-weight: 300;
margin: 0;
color: var(--brand-1);
+ margin-bottom: 0.5em;
+}
+
+.card-content h3 > span {
+ vertical-align: middle;
}
.card > .image {