Skip to content

Commit

Permalink
Merge pull request #886 from samipthapa/samipthapa/876-round-image-co…
Browse files Browse the repository at this point in the history
…rners

task: Ensure image corners are rounded consistently
  • Loading branch information
CodeWritingCow authored Sep 4, 2024
2 parents ea1ec9a + 5ea17d2 commit f51237a
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/components/InfoGraphicSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,17 @@ export const InfoGraphicSection = (props: InfoGraphicProps) => {
const renderGraphicContent = () => {
if ('image' in props) {
return (
<Image
src={props.image.data}
alt={props.image.alt || ''}
className={`w-full rounded-[20px] p-5 info-graphic ${
props.image.className && props.image.className
}`}
priority={(props.image.priority && props.image.priority) || false}
placeholder={'blur'}
/>
<div className={'p-5'}>
<Image
src={props.image.data}
alt={props.image.alt || ''}
className={`w-full rounded-[20px] info-graphic ${
props.image.className && props.image.className
}`}
priority={(props.image.priority && props.image.priority) || false}
placeholder={'blur'}
/>
</div>
);
} else if ('component' in props) {
return props.component;
Expand Down

0 comments on commit f51237a

Please sign in to comment.