Use vertical-align: middle for table cells in the book details panel as well

This commit is contained in:
Kovid Goyal 2017-05-19 11:37:18 +05:30
parent 37a7118489
commit 8f19600f59
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -312,4 +312,6 @@ def mi_to_html(mi, field_list=None, default_author_link=None, use_roman_numbers=
# print '\n'.join(ans) # print '\n'.join(ans)
direction = 'rtl' if rtl else 'ltr' direction = 'rtl' if rtl else 'ltr'
margin = 'left' if rtl else 'right' margin = 'left' if rtl else 'right'
return u'<table class="fields" style="direction: %s; margin-%s:auto">%s</table>'%(direction, margin, u'\n'.join(ans)), comment_fields return u'<style>table.fields td { vertical-align:middle}</style>' + \
u'<table class="fields" style="direction: %s; margin-%s:auto">%s</table>'%(
direction, margin, u'\n'.join(ans)), comment_fields