Round images when site customization border style is rounded (#4237)

This commit is contained in:
Greg Bergé
2026-05-05 14:50:24 +02:00
committed by GitHub
parent 3a9efb8aed
commit f29d1e2f16
@@ -122,7 +122,11 @@ async function ImageBlock(props: {
width: getImageDimension(block.data.width, undefined),
height: getImageDimension(block.data.height, 'auto'),
}}
style={withFrame ? 'rounded-xl' : undefined}
style={
withFrame
? 'rounded-xl'
: 'circular-corners:rounded-2xl rounded-corners:rounded-sm'
}
/>
</Caption>
</div>