Skip to content

Commit f29d1e2

Browse files
authored
Round images when site customization border style is rounded (#4237)
1 parent 3a9efb8 commit f29d1e2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • packages/gitbook/src/components/DocumentView

packages/gitbook/src/components/DocumentView/Images.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,11 @@ async function ImageBlock(props: {
122122
width: getImageDimension(block.data.width, undefined),
123123
height: getImageDimension(block.data.height, 'auto'),
124124
}}
125-
style={withFrame ? 'rounded-xl' : undefined}
125+
style={
126+
withFrame
127+
? 'rounded-xl'
128+
: 'circular-corners:rounded-2xl rounded-corners:rounded-sm'
129+
}
126130
/>
127131
</Caption>
128132
</div>

0 commit comments

Comments
 (0)