Skip to content

Commit c77a4f4

Browse files
authored
Merge pull request #107 from JudahSan/main
Fix caption overflow issue in chapter grid
2 parents db943f0 + 1e5b9e7 commit c77a4f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/views/chapters/index.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-2
99
xl:grid-cols-3 gap-1 gap-y-20 mx-auto place-items-center">
1010
<% @chapters.each do |chapter| %>
11-
<div class="chapter-grid grid flex-grow w-45 h-48 card rounded-box
12-
place-items-center">
11+
<div class="chapter-grid grid grid-rows-[auto,auto] flex-grow w-45 min-h-48 card rounded-box
12+
place-items-center overflow-visible">
1313
<%= image_tag chapter.image.attached? ? chapter.image.url : image_path('chapter.jpg'),
1414
alt: chapter.name,
1515
class: "rounded-lg rounded-tl-2xl"

0 commit comments

Comments
 (0)