wcs: add a css class depending on display mode on card cell (#68140)

This commit is contained in:
Lauréline Guérin 2022-08-12 14:18:28 +02:00
parent 3a3eae69ae
commit 4019081d34
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
1 changed files with 1 additions and 1 deletions

View File

@ -1333,7 +1333,7 @@ class WcsCardCell(CardMixin, CellBase):
@property
def css_class_names(self):
return '%s card %s' % (super().css_class_names, self.get_reference())
return '%s card card-%s %s' % (super().css_class_names, self.display_mode, self.get_reference())
def get_cell_extra_context(self, context):
extra_context = super().get_cell_extra_context(context)