Skip to content

Commit

Permalink
fix copy message on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
willpinha committed Jan 19, 2024
1 parent 427c4f2 commit 077b1fd
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/components/Navbar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,22 @@
</script>

<div class="flex justify-center w-full p-4 fixed top-0">
<nav class="navbar bg-base-200 max-w-md justify-between rounded-box shadow">
<div class="flex gap-2">
<input class="range range-sm range-primary" type="range" min="0" max="0.37" step="0.01" bind:value={$chroma} />
<nav class="navbar flex-col bg-base-200 max-w-md rounded-box shadow min-h-0">
<div class="flex justify-between w-full">
<div class="flex gap-2">
<input class="range range-sm range-primary" type="range" min="0" max="0.37" step="0.01" bind:value={$chroma} />

<span class="text-sm">{$chroma}C</span>
<span class="text-sm">{$chroma}C</span>
</div>

<a href="https://github.com/willpinha/color-shades" class="btn btn-ghost btn-sm btn-square text-primary-content">
<i class="fa-brands fa-github text-xl text-primary-content"></i>
</a>
</div>

<span class="flex gap-2 text-sm text-success" class:hidden={!$copied}>
<i class="fa-solid fa-clipboard"></i>
Copied to clipboard!
</span>

<a href="https://github.com/willpinha/color-shades" class="btn btn-ghost btn-sm btn-square text-primary-content">
<i class="fa-brands fa-github text-xl text-primary-content"></i>
</a>
</nav>
</div>

0 comments on commit 077b1fd

Please sign in to comment.