From d1a1b63db57adff98726b9b3a6dc4a601df4235b Mon Sep 17 00:00:00 2001 From: cyril Date: Thu, 13 Apr 2017 14:26:29 +0200 Subject: [PATCH] Project view: added responsive support on external images --- app/assets/stylesheets/app.components.scss | 5 +++++ app/assets/templates/projects/show.html.erb | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/app.components.scss b/app/assets/stylesheets/app.components.scss index 1fc857f85..5e272835b 100644 --- a/app/assets/stylesheets/app.components.scss +++ b/app/assets/stylesheets/app.components.scss @@ -160,6 +160,11 @@ height: 400px; } } + img { + display: block; + max-width: 100%; + height: auto; + } } .label-staging { diff --git a/app/assets/templates/projects/show.html.erb b/app/assets/templates/projects/show.html.erb index d93942e04..aacdfaabb 100644 --- a/app/assets/templates/projects/show.html.erb +++ b/app/assets/templates/projects/show.html.erb @@ -31,7 +31,7 @@
- {{project.name}} + {{project.name}}

{{ 'project_description' }}

@@ -44,7 +44,7 @@
- {{image.attachment}} + {{image.attachment}}