fix: update image aspect ratios in carousel and category sections
This commit is contained in:
parent
0b6327e2fb
commit
ecd1900acc
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,5 +1,7 @@
|
||||
.DS_Store
|
||||
/node_modules/
|
||||
.vscode/cspell.json
|
||||
.vscode/.cspell/
|
||||
.env
|
||||
|
||||
# React Router
|
||||
|
||||
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -26,6 +26,5 @@
|
||||
"buttonClassName",
|
||||
"leftNodeClassName",
|
||||
"rightNodeClassName"
|
||||
],
|
||||
"cSpell.words": []
|
||||
]
|
||||
}
|
||||
|
||||
@ -84,7 +84,7 @@ export const CarouselSection = (properties: TNews) => {
|
||||
>
|
||||
<div className="flex flex-col justify-between">
|
||||
<img
|
||||
className="aspect-[5/4] max-h-[280px] w-full rounded-md object-cover"
|
||||
className="aspect-[174/100] max-h-[280px] w-full rounded-md object-cover sm:aspect-[5/4]"
|
||||
src={featured}
|
||||
alt={title}
|
||||
/>
|
||||
|
||||
@ -46,7 +46,7 @@ export const CategorySection = (properties: TNews) => {
|
||||
>
|
||||
<img
|
||||
className={twMerge(
|
||||
'aspect-[5/4] w-full rounded-md object-cover',
|
||||
'aspect-[174/100] w-full rounded-md object-cover sm:aspect-[5/4]',
|
||||
)}
|
||||
src={featured}
|
||||
alt={title}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user