Skip to content

Commit bbe4a81

Browse files
committed
feat: 밈 상세 stiffness 수정
1 parent 2945c95 commit bbe4a81

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

apps/web/src/pages/MemeDetailPage/MemeDetailPage.styles.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ import styled from '@emotion/styled';
22
import { motion } from 'motion/react';
33

44
const Container = styled.div`
5-
width: 100%;
6-
height: 100%;
75
overflow-y: auto;
8-
background-color: ${({ theme }) => theme.palette.gray['gray-10']};
96
&::-webkit-scrollbar {
107
display: none;
118
}
@@ -14,12 +11,10 @@ const Container = styled.div`
1411
`;
1512

1613
const ImageContainer = styled(motion.div)`
17-
width: 100%;
1814
position: sticky;
1915
top: 0;
2016
z-index: 10;
2117
padding: 14px;
22-
background-color: ${({ theme }) => theme.palette.gray['gray-10']};
2318
`;
2419

2520
const Image = styled.img`

apps/web/src/pages/MemeDetailPage/index.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Layout from '@/components/Layout';
2-
import { ShareIcon, SymbolTwoIcon } from '@/assets/icons';
2+
import { ShareIcon, SymbolThreeIcon, SymbolTwoIcon } from '@/assets/icons';
33
import { nativeBridge } from '@/utils/bridge';
44
import * as S from './MemeDetailPage.styles';
55
import { useTheme } from '@emotion/react';
@@ -28,11 +28,10 @@ const MemeDetailPage = () => {
2828
const containerRef = useRef<HTMLDivElement>(null);
2929
const { scrollY } = useScroll({ container: containerRef });
3030

31-
const height = useTransform(scrollY, [0, 200], [400, 200]);
31+
const height = useTransform(scrollY, [0, 500], [400, 100]);
3232
const smoothHeight = useSpring(height, {
3333
stiffness: 200,
3434
damping: 20,
35-
mass: 0.5,
3635
});
3736

3837
const textWidth = useTransform(scrollY, [0, 50], [100, 0]);
@@ -51,8 +50,6 @@ const MemeDetailPage = () => {
5150
<Layout
5251
layoutStyle={{
5352
backgroundColor: theme.palette.gray['gray-10'],
54-
height: '100vh',
55-
overflow: 'hidden',
5653
}}
5754
>
5855
<S.Container ref={containerRef}>
@@ -90,7 +87,7 @@ const MemeDetailPage = () => {
9087
</S.SectionTitle>
9188
<S.SectionText>{DUMMY_DATA.success.usage}</S.SectionText>
9289
<S.SectionTitle>
93-
<SymbolTwoIcon width={18} height={18} />
90+
<SymbolThreeIcon width={18} height={18} />
9491
유래
9592
</S.SectionTitle>
9693
<S.SectionText>{DUMMY_DATA.success.origin}</S.SectionText>

0 commit comments

Comments
 (0)