Skip to content

Commit

Permalink
Use fold for footer items
Browse files Browse the repository at this point in the history
  • Loading branch information
hanbyul-here committed Sep 26, 2023
1 parent 7f5c11f commit 180447b
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions app/scripts/components/analysis/define/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ const FoldWithBullet = styled(Fold)<{number: string}>`
// bullet
&::after {
position: absolute;
top: 0;
left: -20px;
width: 40px;
height: 40px;
top: ${variableGlsp(-0.25)};
left: ${variableGlsp(-1)};
width: ${variableGlsp(2)};
height: ${variableGlsp(2)};
background-color: #1565EF;
color: ${themeVal('color.surface')};
border-radius: ${themeVal('shape.ellipsoid')};
Expand All @@ -177,6 +177,7 @@ const FoldWithBullet = styled(Fold)<{number: string}>`
}
`}
`;

export const FoldWOBottomPadding = styled(FoldWithBullet)`
${media.largeUp`
padding-bottom: 0;
Expand All @@ -187,6 +188,10 @@ export const FoldWOBottomPadding = styled(FoldWithBullet)`
`}
`;

const FoldWOPadding = styled(Fold)`
padding: 0;
`;

export const FoldTitleWOAccent = styled(FoldTitle)`
${media.largeUp`
&::before {
Expand Down Expand Up @@ -511,14 +516,18 @@ export default function Analysis() {
</FoldWithBullet>
</PageMainContent>
<FloatingFooter ref={footerRef} isSticky={isFooterSticky}>
<PageFooterActions
isNewAnalysis={isNewAnalysis}
start={start}
end={end}
datasetsLayers={datasetsLayers}
aoi={aoiDrawState.featureCollection}
disabled={notReady}
/>
<FoldWOPadding>
<FoldBody>
<PageFooterActions
isNewAnalysis={isNewAnalysis}
start={start}
end={end}
datasetsLayers={datasetsLayers}
aoi={aoiDrawState.featureCollection}
disabled={notReady}
/>
</FoldBody>
</FoldWOPadding>
</FloatingFooter>
</>
);
Expand Down

0 comments on commit 180447b

Please sign in to comment.