Skip to content

Commit 0383635

Browse files
committed
Add table-style dojos to be better in mobile screens
1 parent 878d4aa commit 0383635

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

get_dojo_list.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@
7373
#result << "\n</ul>\n"
7474

7575
# 掲載方式 v2(表形式)e.g. https://news.coderdojo.jp/2024/12/25/box-japan-to-coderdojo/
76-
result << "<table style='margin: auto; border-collapse: separate; border-spacing: 20px; table-layout: fixed; width: 80%;'>\n"
76+
result << "<table style='margin: auto; border-collapse: separate; border-spacing: 20px; table-layout: fixed; width: 98%;'>\n"
7777
result << " <tbody>\n"
7878
dojo_list.each_with_index do |dojo, i|p
7979
result << " <tr>\n" if i%3 == 0
8080
result << <<-DOJO_HTML
8181
<td style='text-align: center; width: 33%;'>
8282
<a href='#{dojo[:url]}'>
8383
<img src='#{dojo[:logo].gsub('.webp', '.png')}' width='100px'/><br>
84-
<span style='font-weight: bolder;'>#{dojo[:name]}<small>#{dojo[:prefecture]}</small></span>
84+
<span style='font-weight: bolder;'>#{dojo[:name]}<br><small> (#{dojo[:prefecture]})</small></span>
8585
</a>
8686
</td>
8787
DOJO_HTML

0 commit comments

Comments
 (0)