diff --git a/app/assets/stylesheets/custom.scss b/app/assets/stylesheets/custom.scss index d295fa0..5318fa9 100644 --- a/app/assets/stylesheets/custom.scss +++ b/app/assets/stylesheets/custom.scss @@ -36,3 +36,22 @@ body { margin-top: -0.1em; } +.text-bg-primary { + background: rgba($gray-100, 0.9); + padding: .075em; +} + +.text-limit { + position: relative; +} + +$text-limit-line-height: 1.25em; + +.text-limit-4-inner { + position: relative; + display: inline-block; + word-wrap: break-word; + overflow: hidden; + line-height: $text-limit-line-height; + max-height: $text-limit-line-height * 4; +} diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 36fbae5..3d6581c 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -3,6 +3,7 @@ class UsersController < ApplicationController before_action :set_user def show + @reviews = @user.reviews end def edit diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 772b7b6..792411e 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -1,7 +1,7 @@
-