feat(image-search): fix bugs
This commit is contained in:
parent
ee053cf31e
commit
bb9a2f538d
|
@ -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>
|
||||
)}
|
||||
|
|
Loading…
Reference in New Issue