Skip to content

Commit

Permalink
Fix centered image appearance when no ratio is set
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash-Crow committed Mar 6, 2025
1 parent a39b788 commit 4a6962a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion content_manager/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ def ratio_classes(self):
if image_ratio:
return f"fr-responsive-img {image_ratio}"
else:
return ""
return "fr-responsive-img"


class CenteredImageBlock(blocks.StructBlock):
Expand Down
1 change: 0 additions & 1 deletion content_manager/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ def test_public_content_page_is_in_the_site_map(self):

def test_private_content_page_is_not_rendered_when_logged_out(self):
response = self.client.get(self.private_content_page.url)

self.assertEqual(response.status_code, 302)

def test_private_content_page_is_not_in_the_site_map_when_logged_out(self):
Expand Down

0 comments on commit 4a6962a

Please sign in to comment.