diff --git a/models/site_change.rb b/models/site_change.rb index 3043007d..07b56c36 100644 --- a/models/site_change.rb +++ b/models/site_change.rb @@ -6,7 +6,7 @@ class SiteChange < Sequel::Model one_to_one :site_change one_to_many :site_change_files - def site_change_filenames(limit=6) + def site_change_filenames(limit=30) site_change_files_dataset.select(:filename).limit(limit).order(:created_at.desc).all.collect {|f| f.filename}.sort_by {|f| f.match('html') ? 0 : 1} end diff --git a/sass/_project-sass/_project-Main.scss b/sass/_project-sass/_project-Main.scss index 16ad7f20..b3d53025 100644 --- a/sass/_project-sass/_project-Main.scss +++ b/sass/_project-sass/_project-Main.scss @@ -999,15 +999,7 @@ a.tag:hover { .html-thumbnail { width: 102px; } - &:first-child .html-thumbnail.html { - width: 540px; - height: 405px; - @media (max-device-width:480px), screen and (max-width:800px) { - width: 270px; - height: 202px; - } - } - &:first-child .html-thumbnail.html img { + &.big-file .html-thumbnail.html { width: 540px; height: 405px; @media (max-device-width:480px), screen and (max-width:800px) { diff --git a/views/_news.erb b/views/_news.erb index a622e307..8bcde580 100644 --- a/views/_news.erb +++ b/views/_news.erb @@ -92,8 +92,8 @@ <% unless site_change_filenames.empty? %>
- <% site_change_filenames.each do |f| %> -
+ <% site_change_filenames.each.with_index do |f, i| %> +