switch post previews to use flexbox, add better styling for cropped thumbnails

This commit is contained in:
Albert Yi
2018-07-05 16:51:10 -07:00
parent ec44aa84fa
commit a610111658
11 changed files with 62 additions and 64 deletions

View File

@@ -127,7 +127,7 @@ end
if Comment.count == 0
puts "Creating comments"
Post.all.each do |post|
rand(10).times do
rand(100).times do
Comment.create(:post_id => post.id, :body => rand_paragraph(6))
end
end
@@ -141,7 +141,7 @@ if Note.count == 0
rand(5).times do
note = Note.create(:post_id => post.id, :x => rand(post.image_width), :y => rand(post.image_height), :width => 100, :height => 100, :body => Time.now.to_f.to_s)
rand(10).times do |i|
rand(20).times do |i|
note.update_attributes(:body => rand_sentence(6))
end
end