page card cover alt

This commit is contained in:
tmshv committed 2021-02-17 19:09:29 +03:00
1 parent 5087b47343
commit bf4377d614
3 files changed
+3 -1

No files matched your search

+1
View File
@@ -47,6 +47,7 @@ export const PageGrid: React.FC<PageGridProps> = props => {
layout={'fill'}
objectFit={'cover'}
src={item.cover.src}
alt={item.cover.alt}
/>
)}
layout={layout}
+1 -1
View File
@@ -157,7 +157,7 @@ export function createCardGrid(card: StrapiPageCard): PageCardDto {
src: card.page.cover.url,
width: card.page.cover.width,
height: card.page.cover.height,
// alt: '',
alt: card.page.title,
}
}
}
+1
View File
@@ -96,6 +96,7 @@ export type ImageDefinition = {
width: number
height: number
src: string
alt?: string
}
export type TextToken = {