Skip to content

Commit

Permalink
fix: add padding for galleries and draft cards in my galleries page (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
patricio0312rev authored Nov 27, 2023
1 parent 1140b1f commit 65b0570
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/js/Pages/Galleries/MyGalleries/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ const Drafts = ({
}

if (drafts.length === 0) {
return <EmptyBlock>{t("pages.galleries.my_galleries.no_draft_galleries")}</EmptyBlock>;
return <EmptyBlock className="mx-6 sm:mx-0">{t("pages.galleries.my_galleries.no_draft_galleries")}</EmptyBlock>;
}

return (
<div className="-m-1 grid grid-flow-row grid-cols-1 gap-2 sm:grid-cols-2 md-lg:grid-cols-3">
<div className="-m-1 grid grid-flow-row grid-cols-1 gap-2 px-6 sm:grid-cols-2 sm:px-0 md-lg:grid-cols-3">
{drafts.map((draft, index) => (
<NftGalleryDraftCard
key={index}
Expand Down Expand Up @@ -113,12 +113,12 @@ const StoredGalleries = ({ galleries }: Pick<Properties, "galleries">): JSX.Elem
};

if (userGalleries.meta.total === 0) {
return <EmptyBlock>{t("pages.galleries.my_galleries.no_galleries")}</EmptyBlock>;
return <EmptyBlock className="mx-6 sm:mx-0">{t("pages.galleries.my_galleries.no_galleries")}</EmptyBlock>;
}

return (
<>
<div className="-m-1 grid grid-flow-row grid-cols-1 gap-2 sm:grid-cols-2 md-lg:grid-cols-3">
<div className="-m-1 grid grid-flow-row grid-cols-1 gap-2 px-6 sm:grid-cols-2 sm:px-0 md-lg:grid-cols-3">
{userGalleries.data.map((gallery, index) => (
<NftGalleryCard
key={index}
Expand Down

0 comments on commit 65b0570

Please sign in to comment.