Control the height of thumbnails in table view

Since tables row height can't be controlled using CSS (they
will always resize to the size of their elements), this commit
adds a table cell container whose size can be controlled from
the view. This way big thumbnail images won't break the appearance
of the table.

Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2018-12-24 14:29:14 -04:00
parent 91465ef9b0
commit 38228b4fe8
7 changed files with 17 additions and 3 deletions
@@ -45,6 +45,7 @@ class DocumentVersionListView(SingleObjectListView):
'hide_object': True,
'list_as_items': True,
'object': self.get_document(),
'table_cell_container_classes': 'td-container-thumbnail',
'title': _('Versions of document: %s') % self.get_document(),
}