Commit ffb63184 authored by lynn's avatar lynn Committed by GitHub

fix: collection banner sizing (#5039)

* fix

* fix in response to vm comments
parent b1a0c3d6
......@@ -113,7 +113,7 @@ export const TraitSelect = ({ traits, type, index }: { traits: Trait[]; type: st
const debouncedSearch = useDebounce(search, 300)
const searchedTraits = useMemo(
() => traits.filter((t) => t.trait_value.toString().toLowerCase().includes(debouncedSearch.toLowerCase())),
() => traits.filter((t) => t.trait_value?.toString().toLowerCase().includes(debouncedSearch.toLowerCase())),
[debouncedSearch, traits]
)
......
......@@ -74,8 +74,8 @@ const Collection = () => {
{contractAddress ? (
<>
{' '}
<Box width="full" height="160">
<Box width="full" height="160">
<Box width="full" height="276">
<Box width="full" height="276">
{isLoading ? (
<Box height="full" width="full" className={styles.loadingBanner} />
) : (
......@@ -83,7 +83,7 @@ const Collection = () => {
as="img"
height="full"
width="full"
src={collectionStats?.bannerImageUrl}
src={`${collectionStats?.bannerImageUrl}?w=${window.innerWidth}`}
className={isLoading ? styles.loadingBanner : styles.bannerImage}
background="none"
/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment