aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-07-18 15:58:56 +0100
committerStruan Donald <struan@exo.org.uk>2013-07-18 15:58:56 +0100
commit2580704e280a37c4a2458b14a7a175fe03aac637 (patch)
tree302bdb56a1cc61fd5a4cc06fae69b593de60cb08 /src
parent26991e7d01db9ebb94b9390c962e2b4c4c453025 (diff)
tidy up photo display on existing report page. For #52
Diffstat (limited to 'src')
-rw-r--r--src/css/fms.css12
-rw-r--r--src/templates/en/existing.html2
2 files changed, 5 insertions, 9 deletions
diff --git a/src/css/fms.css b/src/css/fms.css
index 140adc3..b49a0e0 100644
--- a/src/css/fms.css
+++ b/src/css/fms.css
@@ -338,14 +338,10 @@
}
#existing_report div.photo {
- text-align: right;
- float: right;
- margin: 0em 0em 0.5em 0em;
- }
-
- #existing_report img.small {
- width: 200px;
- min-height: 0px;
+ width: 100%
+ height: 100px;
+ background-position: center center;
+ background-size: cover
}
/* taken and modified from http://www.mobify.com/blog/multiline-ellipsis-in-pure-css/ */
diff --git a/src/templates/en/existing.html b/src/templates/en/existing.html
index 7e07be8..5e27785 100644
--- a/src/templates/en/existing.html
+++ b/src/templates/en/existing.html
@@ -18,7 +18,7 @@
</div>
<% if ( file ) { %>
- <div class="photo"><img class="small" src="<%= file %>"></div>
+ <div class="photo" style="background-image: url(<%= file %>)"></div>
<% } %>
<% if ( details ) { %>