diff --git a/app/assets/stylesheets/funds.scss b/app/assets/stylesheets/funds.scss index 58eccb7..e341936 100644 --- a/app/assets/stylesheets/funds.scss +++ b/app/assets/stylesheets/funds.scss @@ -22,7 +22,8 @@ .gift-image { width: 100%; height: 647px; - background-size: cover; + background-size: cover; + background-position: center; } #description { diff --git a/app/assets/stylesheets/gifts.scss.erb b/app/assets/stylesheets/gifts.scss.erb index a1c8d53..27bdb52 100644 --- a/app/assets/stylesheets/gifts.scss.erb +++ b/app/assets/stylesheets/gifts.scss.erb @@ -48,7 +48,10 @@ border-top-left-radius: 6px; border-top-right-radius: 6px; width: 100%; - height: 300px; + height: 250px; + background-position: center; + background-size: 100%; + background-repeat: no-repeat; } .gift-info { diff --git a/app/views/friends/index.html.erb b/app/views/friends/index.html.erb index d70c8f1..f939c9e 100644 --- a/app/views/friends/index.html.erb +++ b/app/views/friends/index.html.erb @@ -5,7 +5,7 @@
-
+
<%= link_to new_friend_path(uid: @user.uid, name: @user.name) do %>
@@ -17,7 +17,7 @@
<% (@friends*200).each do |f| %> -
+
<%= link_to new_friend_path(uid: f['id'], name: f['name']) do %>
/picture?height=192&width=192"> diff --git a/app/views/gifts/_gift.html.erb b/app/views/gifts/_gift.html.erb index 049dcd9..3546ef3 100644 --- a/app/views/gifts/_gift.html.erb +++ b/app/views/gifts/_gift.html.erb @@ -1,4 +1,4 @@ -
+
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index ab36b4c..76696da 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -5,6 +5,7 @@ <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> <%= csrf_meta_tags %> +