diff --git a/pub.py b/pub.py index 3035671..cc0c307 100755 --- a/pub.py +++ b/pub.py @@ -17,7 +17,7 @@ s3 = session.client('s3') bench_fmt = """""" -bench_view_ftm = """""" +bench_view_ftm = """""" TYPE_MAP = { 'asc': 'text/plain', @@ -136,7 +136,7 @@ def make_bench_view(idx, prev, nxt): with Image.open('img/bench/{0:03d}.png'.format(idx)) as img: width,height = img.size - body = bench_view_ftm.format(idx, width, height) + body = bench_view_ftm.format(idx, width, height, "vertical" if height > width else "horizontal") preview = "/img/bench/{0:03d}.780.jpg".format(idx) diff --git a/site.css b/site.css index ba916b9..85b38f8 100644 --- a/site.css +++ b/site.css @@ -66,6 +66,10 @@ li { max-width: 100%; } +img.vertical { + width: 100%; +} + div.nav { display: flex; justify-content: space-between;