diff --git a/client/src/components/CafeDetailBottomSheet.tsx b/client/src/components/CafeDetailBottomSheet.tsx index acba492b..5d117b56 100644 --- a/client/src/components/CafeDetailBottomSheet.tsx +++ b/client/src/components/CafeDetailBottomSheet.tsx @@ -1,4 +1,5 @@ import { Suspense, useEffect } from 'react'; +import { createPortal } from 'react-dom'; import { BsX } from 'react-icons/bs'; import { styled } from 'styled-components'; import { useScrollSnapGuard } from 'yozm-cafe-react-scroll-snap'; @@ -29,41 +30,46 @@ const CafeDetailBottomSheet = (props: CafeDetailBottomSheetProps) => { }; return ( - - - - - {cafe.name} - - - - - - - - - - - {cafe.address} - - - - - - {/* + <> + {createPortal( + + + + + {cafe.name} + + + + + + + + + + + {cafe.address} + + + + + + {/*

000-000-000

*/} -
- - - {cafe.detail.description.split('\n').map((paragraph, index) => ( -

{paragraph}

- ))} -
- - -
+
+ + + {cafe.detail.description.split('\n').map((paragraph, index) => ( +

{paragraph}

+ ))} +
+ + +
, + document.bodyRoot, + )} + ); }; @@ -79,6 +85,7 @@ const Container = styled.div` width: 100%; height: 450px; + max-height: 100vh; padding: ${({ theme }) => theme.space[4]}; padding-bottom: 0;