Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/routes/playlists/playlist/[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
<img
src={imageUrl}
alt={playlist?.name}
class="mx-auto aspect-square w-full max-w-sm rounded-lg object-cover shadow-md md:mx-0"
class="aspect-square w-full max-w-sm rounded-lg object-cover shadow-md"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent centering classes between image and fallback elements

Low Severity

The mx-auto md:mx-0 classes were removed from the <img> element but not from the fallback <div> elements in the :catch and :else branches. This causes the playlist image to be left-aligned when it loads successfully, but centered on mobile when the image fails to load or doesn't exist, creating an inconsistent visual layout.

Additional Locations (2)

Fix in Cursor Fix in Web

/>
{:catch}
<div
Expand Down
Loading