Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display image credit in LargeImageBlock #439

Merged
merged 2 commits into from
Dec 5, 2024
Merged

Conversation

lilia1891
Copy link
Collaborator

Fix: The image credit for images in the Steamfield LargeImageBlock was not displayed in the UI.
Asana - https://app.asana.com/0/1206017643443542/1208839363867554/f

  • Updated the STREAM_FIELD_FRAGMENT to include the imageCredit field for LargeImageBlock;
  • Re-used the ImageCredit from ContentPageHeaderBlock;
  • Added conditional rendering of ImageCredit to display it only when the backend provides the data.

Test case: http://klima-potsdam.localhost:3000/aktivitaeten/klimapreis

@lilia1891 lilia1891 requested a review from woodwoerk December 5, 2024 08:56
style={{
display: 'block',
width: '100%',
marginBottom: theme.spaces.s600,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we keep this marginBottom on the new div element?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should! thanks @woodwoerk !

Copy link
Collaborator

@woodwoerk woodwoerk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Looks good to me

@lilia1891 lilia1891 merged commit bb1a19d into master Dec 5, 2024
3 checks passed
@lilia1891 lilia1891 deleted the fix/image-credit-display branch December 5, 2024 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants