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

Adjustments to Full width image component #1756 #1791

Merged
6 commits merged into from
Jan 22, 2024
Merged

Adjustments to Full width image component #1756 #1791

6 commits merged into from
Jan 22, 2024

Conversation

millianapia
Copy link
Contributor

No description provided.

@millianapia millianapia requested a review from a team as a code owner July 26, 2023 10:34
@millianapia millianapia self-assigned this Jul 26, 2023
const ratio =
width && width < 750
? Ratios.ONE_TO_TWO
: aspectRatio === String(Ratios.ONE_TO_TWO)
Copy link
Contributor

Choose a reason for hiding this comment

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

this will always be false because Ratios.ONE_TO_TWO is '0.5' and your variable is '2:1'

@padms padms requested a review from fernandolucchesi August 14, 2023 08:19
@@ -16,7 +16,7 @@ const FullWidthImage = ({ data, anchor }: TeaserProps) => {
const ratio =
width && width < 750
? Ratios.ONE_TO_TWO
: aspectRatio === String(Ratios.ONE_TO_TWO)
: aspectRatio === Ratios.ONE_TO_TWO
Copy link
Contributor

Choose a reason for hiding this comment

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

this whole if condition can be simplified into a single check

@padms padms requested a review from fernandolucchesi August 17, 2023 13:41
@padms padms requested a review from fernandolucchesi August 30, 2023 09:14
@fernandolucchesi fernandolucchesi closed this pull request by merging all changes into main in bacab97 Jan 22, 2024
@millianapia millianapia deleted the malj/1756 branch February 15, 2024 15:45
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.

3 participants