Skip to content

Commit

Permalink
fix: content shifting when the copy button appears on mobile (#236)
Browse files Browse the repository at this point in the history
* Fix content shifting when the copy button appears

* Fix content shifting when the copy button appears on mobile
  • Loading branch information
DarthGigi committed May 4, 2024
1 parent 32a5817 commit 5c50eec
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/components/GithubStarButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,14 @@
aria-label={`Star ${REPOSITORY_PATH} on GitHub`}
on:click={onButtonClick}
>
<span class="space-x-2 flex items-center border-r border-[#373b43] px-2">
<GithubIcon class="size-[1.1rem]" />
<span>Star</span>
<span
class="flex items-center border-[#373b43] px-3 sm:space-x-2 sm:border-r"
>
<GithubIcon class="size-[1.3rem] sm:size-[1.1rem]" />
<span class="hidden sm:inline">Star</span>
</span>
{#if isFetchingStarCount || starCount !== 0}
<div class="h-full flex justify-center items-center pl-3 pr-3">
<div class="hidden h-full items-center justify-center px-3 sm:flex">
{#if isFetchingStarCount && starCount === 0}
<svg
class="animate-spin size-4 mx-1"
Expand Down

0 comments on commit 5c50eec

Please sign in to comment.