From de90f1583f2ca98c9f83f5a1eaf6072dcf5cd09d Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sat, 3 Aug 2013 14:59:03 +0200 Subject: Added some minor adjustments to look better on mobile browsers. --- db.py | 3 ++- static/style.css | 1 + templates/base.tmpl | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/db.py b/db.py index 8cadb6b..064f8e5 100644 --- a/db.py +++ b/db.py @@ -56,7 +56,8 @@ class File(Base): def html(self): return u'{filename} ' \ - '1 2 del ({size}) on {date}'.format( + '1 2 del ' \ + '({size}) on {date}'.format( root = settings.virtual_root, hash = self.hash, filename = self.filename, ext = os.path.splitext(self.filename)[1], size = self.pretty_size(self.get_size()), date = self.date.strftime('%Y-%m-%d %H:%M:%S UTC')) diff --git a/static/style.css b/static/style.css index 0e2002e..e2ff80f 100644 --- a/static/style.css +++ b/static/style.css @@ -12,6 +12,7 @@ div#page-menu a { color: #ccc; text-decoration: none; margin: 0 .5em 0 .5em; } ul { list-style-type: none; } li { margin-left: 1em; } +.file-info { display: inline-block; } .image-list .image { display: inline-block; vertical-align: top; width: 128px; margin: .5em; } .image-list .image img { opacity: 1; } diff --git a/templates/base.tmpl b/templates/base.tmpl index d9d9ab1..fe9120b 100644 --- a/templates/base.tmpl +++ b/templates/base.tmpl @@ -5,6 +5,7 @@ $title + #block head #end block -- cgit v1.2.3