Skip to content
Snippets Groups Projects
Commit 1e70f659 authored by Richard Fernando Heise Ferreira's avatar Richard Fernando Heise Ferreira
Browse files

HOTFIX: collection position in screen

parent 95956d69
No related branches found
No related tags found
No related merge requests found
Pipeline #41405 passed
...@@ -12,6 +12,8 @@ export default function GroupCardsCollections({ data, cardsPerRow, collectionId ...@@ -12,6 +12,8 @@ export default function GroupCardsCollections({ data, cardsPerRow, collectionId
const [showButton, setShowButton] = useState(false); const [showButton, setShowButton] = useState(false);
const router = useRouter() const router = useRouter()
console.log(data)
const handleResize = (data) => { const handleResize = (data) => {
setShowButton(data?.length > cardsPerRow); setShowButton(data?.length > cardsPerRow);
}; };
...@@ -30,7 +32,7 @@ export default function GroupCardsCollections({ data, cardsPerRow, collectionId ...@@ -30,7 +32,7 @@ export default function GroupCardsCollections({ data, cardsPerRow, collectionId
<div className="mx-1 flex flex-col"> <div className="mx-1 flex flex-col">
<div id="contentSize" className={`flex content flex-wrap max-sm:justify-center mb-4 max-sm:ml-0 md:ml-0 ${expanded ? "" : "overflow-y-hidden h-[270px]"}`}> <div id="contentSize" className={`flex content flex-wrap max-sm:justify-center mb-4 max-sm:ml-0 md:ml-0 ${expanded ? "" : "overflow-y-hidden h-[270px]"}`}>
{data?.length !== 0 ? data?.map((item, index) => { {data?.length !== 0 ? data?.sort((a,b) => a.position - b.position).map((item, index) => {
return ( return (
<Cards <Cards
collectionSource={collectionId} collectionSource={collectionId}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment