diff --git a/resources/content_server/mobile.css b/resources/content_server/mobile.css index 0022b2a134..a887684841 100644 --- a/resources/content_server/mobile.css +++ b/resources/content_server/mobile.css @@ -53,6 +53,7 @@ div.navigation { } #listing td { padding: 0.25em; + vertical-align: middle; } #listing td.thumbnail { @@ -73,6 +74,7 @@ div.navigation { overflow: hidden; text-align: center; text-decoration: none; + vertical-align: middle; } #logo { diff --git a/src/calibre/library/server/browse.py b/src/calibre/library/server/browse.py index 247e6945e6..ea69ad77ef 100644 --- a/src/calibre/library/server/browse.py +++ b/src/calibre/library/server/browse.py @@ -7,6 +7,7 @@ __docformat__ = 'restructuredtext en' import operator, os, json from binascii import hexlify, unhexlify +from urllib import quote import cherrypy @@ -136,7 +137,7 @@ def get_category_items(category, items, db, datatype): # {{{ q = i.category if not q: q = category - href = '/browse/matches/%s/%s'%(q, id_) + href = '/browse/matches/%s/%s'%(quote(q), quote(id_)) return templ.format(xml(name), rating, xml(desc), xml(href), rstring) @@ -329,7 +330,7 @@ class BrowseServer(object): cats = [('