From 36aa13e90db8c494730ab505647011201ced6646 Mon Sep 17 00:00:00 2001 From: Imke Brandt Date: Sat, 22 Dec 2012 01:34:43 +0100 Subject: [PATCH] - corrected lower paging navigation to display under the content - allowed the titles to become 3 lines long before getting cut - decreased batch size from 15 to 12 to avoid log ways to scroll --- on/video/browser/videogallery.py | 4 ++-- on/video/static/videolisting.css | 10 ++++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/on/video/browser/videogallery.py b/on/video/browser/videogallery.py index 53fec7a..035936d 100644 --- a/on/video/browser/videogallery.py +++ b/on/video/browser/videogallery.py @@ -79,8 +79,8 @@ def countFolderItems(item): def shorttitle(title): """shorten titles for gallery view""" - if len(title) > 20: - tshort = title[:17] + "..." + if len(title) > 50: + tshort = title[:47] + "..." else: tshort = title tdict = {'short': tshort, 'long': title} return tdict diff --git a/on/video/static/videolisting.css b/on/video/static/videolisting.css index 9c4f0d9..73a5c52 100644 --- a/on/video/static/videolisting.css +++ b/on/video/static/videolisting.css @@ -9,15 +9,21 @@ overflow: hidden; text-align: center; width: 30%; - height: 42mm; + height: 52mm; } #videowrapper .even { background-color: #d6dae1; } +#videowrapper .listingBar { + clear: left; +} + #videowrapper h4 { - margin: 10px 5px 8px 5px; + margin: 10px 40px 8px 40px; + text-align: center; + height: 3em; } .videothumb img {