Skip to content

Commit

Permalink
🦸 Fixes hero / cover images (#152)
Browse files Browse the repository at this point in the history
* 'swap fill values for cover and hero image'

* 'swap for collections'

---------

Co-authored-by: Harpo <[email protected]>
  • Loading branch information
foglabs and mrharpo authored Feb 7, 2024
1 parent e5bd483 commit 74b1e6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions exhibits/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,15 +169,15 @@ class ExhibitPage(HeadlessMixin, Page):
APIField('body'),
APIField(
'cover_image',
serializer=ImageRenditionField('fill-1600x500'),
serializer=ImageRenditionField('fill-1920x1080'),
),
APIField(
'cover_thumb',
serializer=ImageRenditionField('fill-480x270', source='cover_image'),
),
APIField(
'hero_image',
serializer=ImageRenditionField('fill-1920x1080'),
serializer=ImageRenditionField('fill-1600x500'),
),
APIField(
'hero_thumb',
Expand Down
4 changes: 2 additions & 2 deletions ov_collections/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ class Collection(HeadlessMixin, Page):
APIField('introduction'),
APIField(
'cover_image',
serializer=ImageRenditionField('fill-1600x500'),
serializer=ImageRenditionField('fill-1920x1080'),
),
APIField(
'hero_image',
serializer=ImageRenditionField('fill-1920x1080'),
serializer=ImageRenditionField('fill-1600x500'),
),
APIField(
'hero_thumb',
Expand Down

0 comments on commit 74b1e6b

Please sign in to comment.