mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-23 19:06:31 +00:00
Round images when site customization border style is rounded (#4237)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user