Skip to content

Build your personal knowledge base with Trilium Notes

style(website): misalignment of icon in button

Elian Doran61ea27c8f4bb
diff --git a/apps/website/src/components/Button.css b/apps/website/src/components/Button.css
index b252b24cee..41d5cafbc7 100644
--- a/apps/website/src/components/Button.css
+++ b/apps/website/src/components/Button.css
@@ -13,4 +13,8 @@ a.button.outline {
border: 1px solid var(--brand-1);
color: var(--brand-1);
background-color: transparent;
+}
+
+a.button .text {
+ vertical-align: middle;
}
\ No newline at end of file
diff --git a/apps/website/src/components/Button.tsx b/apps/website/src/components/Button.tsx
index c48cf66dfa..1ac4c8fe03 100644
--- a/apps/website/src/components/Button.tsx
+++ b/apps/website/src/components/Button.tsx
@@ -26,7 +26,7 @@ export default function Button({ iconSvg, text, className, outline, ...restProps
{...restProps}
>
{iconSvg && <><Icon svg={iconSvg} />{" "}</>}
- {text}
+ <span class="text">{text}</span>
</Link>
)
}