Skip to content

Commit

Permalink
playlist grid
Browse files Browse the repository at this point in the history
  • Loading branch information
michelson committed Jul 1, 2024
1 parent c239de7 commit 4daa32d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/home/_playlist_section.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</div>
<div class="relative">
<div class="overflow-auto no-scrollbar relative" data-scroll-target="scrollContainer">
<div class="grid grid-cols-4 grid-flow-col grid-rows-1- sm:gap-x-2 md:grid-cols-4- md:gap-y-0- lg:gap-x-8">
<div class="grid grid-cols-1- grid-flow-col grid-rows-1- sm:gap-x-2 md:grid-cols-4- md:gap-y-0- lg:gap-x-8">
<% Playlist.published.latests.where(playlist_type: playlist_type).limit(limit).each do |playlist| %>
<div class="w-64 m-4">
<%= link_to playlist_path(playlist) do %>
Expand Down
4 changes: 3 additions & 1 deletion app/views/home/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@
<%= link_to article_path(post) do %>
<div class="w-full md:w-2/3 p-4">
<h1 class="text-4xl font-bold mb-4"><%= post.title %></h1>
<p class="text-lg mb-4 hidden">...</p>
<p class="text-lg mb-4">
<%= t("articles.by") %> <%= link_to post.user.username, user_path(post.user.username), class: "link" %> · <%= l post.created_at, format: :long_with_day %>.
</p>
<!--<a href="#" class="bg-white text-purple-600 font-semibold py-2 px-4 rounded-lg">
Read more
</a>-->
Expand Down

0 comments on commit 4daa32d

Please sign in to comment.