Skip to content

Commit 25d3581

Browse files
fix: Overflow issue with the GitHub icon
1 parent 3e831ff commit 25d3581

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/components/cards/project_card.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub fn ProjectCard(
2121
let current_color = (*colors.get(&button_bg_color).unwrap()).to_string();
2222

2323
view! {
24-
<div class="group flex flex-col gap-y-6 border border-black p-2 sm:p-6 hover:bg-orange-500 dark:hover:bg-zinc-900/40 bg-orange-100 dark:bg-black/40 drop-shadow-[0_0_0_rgba(0,0,0)] hover:drop-shadow-[-4px_-4px_0_rgba(0,0,0)] transition justify-between">
24+
<div class="group flex flex-col items-center sm:items-stretch gap-y-6 border border-black p-4 sm:p-6 hover:bg-orange-500 dark:hover:bg-zinc-900/40 bg-orange-100 dark:bg-black/40 drop-shadow-[0_0_0_rgba(0,0,0)] hover:drop-shadow-[-4px_-4px_0_rgba(0,0,0)] transition justify-between">
2525
<a href=link target="_blank">
2626
<div class="flex flex-col justify-between gap-y-2">
2727
{if brand_as_letter {
@@ -47,18 +47,18 @@ pub fn ProjectCard(
4747
<CardTitle texts=name/>
4848
<p class="mt-2 font-work-sans text-black dark:text-white">{description}</p>
4949
</div>
50-
<div class="flex gap-2 items-center mt-4">
50+
<div class="flex gap-4 sm:gap-0 justify-around items-center mt-4">
5151
<ButtonLink href=button_link size="tiny">
5252
{if button_text.is_empty() {
5353
name.join("")
5454
} else {
5555
button_text.to_string()
5656
}}
5757

58-
</ButtonLink>
59-
<span class="ml-auto">
58+
</ButtonLink>
59+
<span class="px-1">
6060
<GithubIcon size=30/>
61-
</span>
61+
</span>
6262
</div>
6363
</a>
6464
</div>

0 commit comments

Comments
 (0)