Skip to content

Commit b5f3335

Browse files
committed
feat: no screenshot available
1 parent 74395f4 commit b5f3335

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

  • packages/slice-machine/src/features/customTypes/customTypesBuilder/ImportSlicesFromLibraryModal

packages/slice-machine/src/features/customTypes/customTypesBuilder/ImportSlicesFromLibraryModal/SliceCard.tsx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Checkbox } from "@prismicio/editor-ui";
1+
import { Box, Checkbox, Text } from "@prismicio/editor-ui";
22
import { SharedSlice } from "@prismicio/types-internal/lib/customtypes";
33

44
import { Card, CardFooter, CardMedia } from "@/components/Card";
@@ -22,7 +22,18 @@ export function SliceCard(props: SliceCardProps) {
2222
{thumbnailUrl !== undefined && thumbnailUrl ? (
2323
<CardMedia src={thumbnailUrl} />
2424
) : (
25-
<CardMedia component="div" />
25+
<CardMedia component="div">
26+
<Box
27+
alignItems="center"
28+
flexDirection="column"
29+
gap={8}
30+
justifyContent="center"
31+
>
32+
<Text color="grey11" component="span">
33+
No screenshot available
34+
</Text>
35+
</Box>
36+
</CardMedia>
2637
)}
2738
<CardFooter
2839
title={model.name}

0 commit comments

Comments
 (0)