File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
packages/gitbook/src/components/DocumentView/Table Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -54,13 +54,15 @@ export async function RecordCard(
54
54
// On mobile, check if we can display the cover responsively or not:
55
55
// - If the file has a landscape aspect ratio, we display it normally
56
56
// - If the file is square or portrait, we display it left with 40% of the card width
57
- coverIsLandscape
58
- ? 'grid-rows-[auto,1fr]'
59
- : [
60
- 'grid-cols-[40%,_1fr]' ,
61
- 'min-[432px]:grid-cols-none' ,
62
- 'min-[432px]:grid-rows-[auto,1fr]' ,
63
- ] ,
57
+ cover
58
+ ? coverIsLandscape
59
+ ? 'grid-rows-[auto,1fr]'
60
+ : [
61
+ 'grid-cols-[40%,_1fr]' ,
62
+ 'min-[432px]:grid-cols-none' ,
63
+ 'min-[432px]:grid-rows-[auto,1fr]' ,
64
+ ]
65
+ : null ,
64
66
) }
65
67
>
66
68
{ cover ? (
You can’t perform that action at this time.
0 commit comments