feat(image-search): fix bugs

This commit is contained in:
ItzCrazyKns 2024-04-30 14:26:17 +05:30
parent ee053cf31e
commit bb9a2f538d
No known key found for this signature in database
GPG Key ID: 8162927C7CCE3065

View File

@ -66,7 +66,7 @@ const SearchImages = ({
</button>
)}
{loading && (
<div className="grid grid-cols-1 lg:grid-cols-2 gap-2">
<div className="grid grid-cols-2 gap-2">
{[...Array(4)].map((_, i) => (
<div
key={i}
@ -127,7 +127,7 @@ const SearchImages = ({
))}
</div>
<p className="text-white/70 text-xs">
View {images.slice(0, 2).length} more
View {images.length - 3} more
</p>
</button>
)}