feat(image-search): fix bugs
This commit is contained in:
parent
ee053cf31e
commit
bb9a2f538d
|
@ -66,7 +66,7 @@ const SearchImages = ({
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
{loading && (
|
{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) => (
|
{[...Array(4)].map((_, i) => (
|
||||||
<div
|
<div
|
||||||
key={i}
|
key={i}
|
||||||
|
@ -127,7 +127,7 @@ const SearchImages = ({
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
<p className="text-white/70 text-xs">
|
<p className="text-white/70 text-xs">
|
||||||
View {images.slice(0, 2).length} more
|
View {images.length - 3} more
|
||||||
</p>
|
</p>
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in New Issue