diff --git a/lambda/web/app/models/tweet.rb b/lambda/web/app/models/tweet.rb index c0972eb..26db51e 100644 --- a/lambda/web/app/models/tweet.rb +++ b/lambda/web/app/models/tweet.rb @@ -9,7 +9,7 @@ class << self def ranking order_by_score_desc .reject { |t| t.delete_flag } - .take(15) + .take(30) end def all diff --git a/lambda/web/app/public/css/style.css b/lambda/web/app/public/css/style.css index 306b62b..1b0561c 100644 --- a/lambda/web/app/public/css/style.css +++ b/lambda/web/app/public/css/style.css @@ -69,11 +69,21 @@ h1 { } .contents { - margin: 0 20%; + margin: 0 5%; background: #fff; + display: flex; + justify-content: center; +} + +.ranking { + flex-grow: 1; border: 1rem #000 solid; } +.ranking:first-child { + border-right: none; +} + .ranking-list { border-bottom: 1rem #000 solid; } diff --git a/lambda/web/app/views/index.erb b/lambda/web/app/views/index.erb index 6aacd21..f1fb17b 100644 --- a/lambda/web/app/views/index.erb +++ b/lambda/web/app/views/index.erb @@ -15,30 +15,32 @@