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:
@@ -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(),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user