Update CreatePlaylistButton.svelte

This commit is contained in:
freearhey 2023-10-10 06:14:38 +03:00
parent 8cce03ffe5
commit 0b302db5fa

View file

@ -7,57 +7,55 @@
const dispatch = createEventDispatcher()
</script>
<div class="w-14 sm:w-36">
<ActionButton
disabled={$downloadMode}
on:click={() => {
downloadMode.set(true)
dispatch('click')
}}
area-label="Create Playlist"
>
<span class="sm:hidden inline">
<svg
xmlns="http://www.w3.org/2000/svg"
class="w-5 h-5"
fill="currentColor"
viewBox="0 0 512 512"
><path
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="48"
d="M160 144h288M160 256h288M160 368h288"
/><circle
cx="80"
cy="144"
r="16"
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="32"
/><circle
cx="80"
cy="256"
r="16"
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="32"
/><circle
cx="80"
cy="368"
r="16"
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="32"
/></svg
>
</span><span class="hidden sm:inline">Create Playlist</span>
</ActionButton>
</div>
<ActionButton
disabled={$downloadMode}
on:click={() => {
downloadMode.set(true)
dispatch('click')
}}
area-label="Create Playlist"
>
<span class="inline">
<svg
xmlns="http://www.w3.org/2000/svg"
class="w-5 h-5"
fill="currentColor"
viewBox="0 0 512 512"
><path
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="48"
d="M160 144h288M160 256h288M160 368h288"
/><circle
cx="80"
cy="144"
r="16"
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="32"
/><circle
cx="80"
cy="256"
r="16"
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="32"
/><circle
cx="80"
cy="368"
r="16"
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="32"
/></svg
>
</span><span class="hidden sm:inline">Create Playlist</span>
</ActionButton>