Skip to content

Commit 491977f

Browse files
committed
Minor styling fixes
1 parent e698350 commit 491977f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/components/SidebarIcon.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ const filter =
2222
style={{
2323
filter,
2424
height: "17px", // if someone smarter than me can make this properly text height, please go for it
25-
width: "auto",
25+
width: "17px",
26+
marginRight: "0.5em",
2627
float: "left",
2728
}}
2829
src={iconProps.lottieLink}

src/components/overrides/Banner.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const { banner } = Astro.locals.starlightRoute.entry.data;
3636
<div
3737
class={`sl-banner dismissible relative ${banner.type !== "default" ? `alert ${banner.type}` : ""}`}
3838
>
39-
<div class="flex gap-2 leading-6">
39+
<div class={`leading-6 ${icon ? "flex gap-2" : ""}`}>
4040
{icon && (
4141
<Icon name={icon} size="1.333em" class="min-w-[1.333em]" />
4242
)}
@@ -68,7 +68,7 @@ const { banner } = Astro.locals.starlightRoute.entry.data;
6868
<div
6969
class={`sl-banner relative ${banner.type !== "default" ? `alert ${banner.type}` : ""}`}
7070
>
71-
<div class="flex gap-2">
71+
<div class={`leading-6 ${icon ? "flex gap-2" : ""}`}>
7272
{icon && <Icon name={icon} size="1.333em" />}
7373
<span set:html={banner.content} />
7474
</div>

0 commit comments

Comments
 (0)