From 715b20371b8a82cf62de8407ee30eaf65aecf2ee Mon Sep 17 00:00:00 2001 From: Chris Lowis Date: Thu, 7 Sep 2023 21:46:28 +0100 Subject: [PATCH] Improve styling of album show page --- app/views/albums/show.html.erb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/views/albums/show.html.erb b/app/views/albums/show.html.erb index 56f1c29e..1d67764d 100644 --- a/app/views/albums/show.html.erb +++ b/app/views/albums/show.html.erb @@ -1,7 +1,11 @@ -

<%= @album.title %>

-

<%= @album.artist.name %>

-<%= image_tag @album.cover.representation(resize_to_limit: [400, 400]) %> +
+

<%= @album.title %>

+

<%= @album.artist.name %>

+
+<%= image_tag @album.cover.representation(resize_to_limit: [400, 400]), class: 'w-full' %> + +

Tracklist

    <% @album.tracks.each_with_index do |track, index| %>
  1. <%= index + 1 %>. <%= track.title %> <%= text_link_to 'Edit', edit_artist_album_track_url(track.artist, track.album, track) %>