From 25556b52c355b615da2f22ed8cccce220d8a0bb9 Mon Sep 17 00:00:00 2001 From: Jay Peterson Date: Wed, 6 Sep 2017 15:12:44 -0600 Subject: [PATCH] Changed the margins of the item rows for aesthetic purposes. Also addressed issue #5 by restructuring image queries, resizing and realigning the image to make it look pretty. --- simple.py | 2 +- static/css/default.css | 4 ++++ templates/instance.html | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/simple.py b/simple.py index c7ff7f6..a3e350a 100644 --- a/simple.py +++ b/simple.py @@ -76,7 +76,7 @@ def retrieve_cover_art(instance): result = requests.get(cover_url) #print(cover_url, result.status_code) if len(result.content) > 100: - return """{} Cover Art""".format(cover_url, + return """{} Cover Art""".format(cover_url, instance.name) return '' diff --git a/static/css/default.css b/static/css/default.css index 4055e75..249a815 100644 --- a/static/css/default.css +++ b/static/css/default.css @@ -4,4 +4,8 @@ body { margin-top: 30px; } border-width: 4px; border-color: #FAEBD7; margin:5px; +} +img{ + max-width:200px; + max-height:300px; } \ No newline at end of file diff --git a/templates/instance.html b/templates/instance.html index 6d6b7fa..dd922aa 100644 --- a/templates/instance.html +++ b/templates/instance.html @@ -66,7 +66,7 @@

{% if instance.datePublished|is_list %} {% for row in instance.workExample %} {% set loc = row.provider %} {% set items = [row,] %} -
+