fix: search results without a image should be full-width; refs #180

This commit is contained in:
Hossein Mehrabi 2023-09-05 18:43:29 +03:30
parent 72e007b674
commit f7a39ed5fc
No known key found for this signature in database
GPG Key ID: 45C04964191AFAA1
1 changed files with 9 additions and 0 deletions

View File

@ -124,6 +124,7 @@ export const PostCard = (_props: PostCardProps) => {
className={clsx(
'post-card',
applySizeStyles && applySizeStyles && `post-card--${size}`,
coverImageElement && 'post-card--with-image',
props.className,
`post-card__${contentType}`,
)}
@ -467,6 +468,14 @@ PostCard.styles = {
}
}
&:not(.post-card--with-image) {
grid-template-areas:
'info info info info info info info info'
'info info info info info info info info'
'info info info info info info info info'
'info info info info info info info info' !important;
}
${lsdUtils.breakpoint(theme, 'sm', 'down')} {
&.post-card__article {
.post-card__subtitle {