Skip to content

Commit fa1382b

Browse files
authored
Add responsive image sizes for RecordCard component (#3654)
Co-authored-by: Nicolas Dorseuil <nicolas@gitbook.io>
1 parent b8388e5 commit fa1382b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/gitbook/src/components/DocumentView/Table/RecordCard.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,12 @@ export async function RecordCard(
9595
}}
9696
sizes={[
9797
{
98+
media: '(max-width: 640px)',
9899
width: view.cardSize === 'medium' ? 245 : 376,
99100
},
101+
{
102+
width: view.cardSize === 'medium' ? 490 : 752,
103+
},
100104
]}
101105
resize={context.contentContext?.imageResizer}
102106
className={tcls(

0 commit comments

Comments
 (0)