Skip to content

Commit

Permalink
refactor: div 구조 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
byun sumi committed Feb 28, 2024
1 parent be4807a commit 71618df
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/pages/gallery/index.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@ function Gallery() {
<div>
<GalleryHeader />
<Tab activeTab={activeTab} onClick={setActiveTab} />
<div key={activeTab}>
<div key={activeTab} css={contentCss}>
<FilterTab filterTab={filterTab} setFilterTab={setFilterTab} />
<StaggerWrapper wrapperOverrideCss={listCss}>
<div>
<FilterTab filterTab={filterTab} setFilterTab={setFilterTab} />
<PublishMyCard />
</div>
<PublishMyCard />
{data.gallerys.map((gallery) => (
<Card key={gallery.gallery_id} survey={gallery.survey} target={gallery.target} />
))}
Expand All @@ -36,11 +34,13 @@ function Gallery() {

export default Gallery;

const contentCss = css`
padding: 24px 4px 72px;
`;

const listCss = css`
display: flex;
flex-direction: column;
gap: 18px;
align-items: stretch;
padding: 24px 4px 72px;
`;

0 comments on commit 71618df

Please sign in to comment.