Skip to content

Commit

Permalink
Improve lastfm widget layout
Browse files Browse the repository at this point in the history
  • Loading branch information
lucianoratamero committed Aug 26, 2024
1 parent 8cadbc5 commit 210d381
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/routes/lastfm-now-playing/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@
{/if}

{#if formatted_data}
<div class="flex items-center text-lg gap-4 p-4 bg-slate-800 text-white bg-opacity-80 rounded-xl w-[400px]">
<img class="h-24 w-24" src="{formatted_data.image}" alt="{formatted_data.track} by {formatted_data.artist}" />
<div class="flex items-center text-xl gap-4 p-4 bg-gray-950 text-white bg-opacity-80 rounded-xl w-[400px]">
<img class="h-28 w-28 rounded" src="{formatted_data.image}"
alt="{formatted_data.track} by {formatted_data.artist}" />
<div class="flex flex-col justify-center overflow-hidden">
<h1 class="font-bold whitespace-nowrap overflow-hidden overflow-ellipsis">{formatted_data.track}</h1>
<h2 class="whitespace-nowrap overflow-hidden overflow-ellipsis">{formatted_data.artist}</h2>
<h3 class="whitespace-nowrap overflow-hidden overflow-ellipsis">{formatted_data.album}</h3>
</div>
</div>
{/if}

0 comments on commit 210d381

Please sign in to comment.