File tree Expand file tree Collapse file tree 2 files changed +17
-7
lines changed
Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 99 width : clamp (688px , 55.417vw , 66.5rem );
1010 }
1111 @include r .media-tablet {
12- width : clamp ( 440 px , 35.833 vw , 688px ) ;
12+ width : 688px ;
1313 }
1414 @include r .media-mobile {
1515 width : 440px ;
1616 }
17+ @include r .media-small-mobile {
18+ width : 280px ;
19+ }
1720 & {
1821 border : 1px solid var (--grey-grey7 , #3c3c3c );
1922 }
Original file line number Diff line number Diff line change @@ -21,13 +21,15 @@ const PolicyContent = ({ page = 0 }) => {
2121 const [ numPages , setNumPages ] = useState ( null ) ;
2222 const { width : windowWidth } = useWindowDimensions ( ) ;
2323
24- // 창 크기가 768px 이상일 때 값
24+ // 기본: 768px 이상
2525 let calculatedWidth = 686 ;
2626
27- if ( windowWidth <= 767 ) {
28- const vwWidth = windowWidth * 0.35833 ;
29- calculatedWidth = Math . min ( Math . max ( vwWidth , 440 ) , 688 ) ;
30- } else if ( windowWidth <= 480 ) {
27+ // 480 미만 먼저 체크 → 280px
28+ if ( windowWidth < 480 ) {
29+ calculatedWidth = 280 ;
30+ }
31+ // 480 이상 768 미만 → 440px
32+ else if ( windowWidth < 768 ) {
3133 calculatedWidth = 440 ;
3234 }
3335
@@ -46,7 +48,12 @@ const PolicyContent = ({ page = 0 }) => {
4648 loading = { < PartialLoading /> }
4749 >
4850 { Array . from ( new Array ( numPages ) , ( el , index ) => (
49- < Page key = { index } renderMode = "canvas" pageNumber = { index + 1 } width = { calculatedWidth } />
51+ < Page
52+ key = { index }
53+ renderMode = "canvas"
54+ pageNumber = { index + 1 }
55+ width = { calculatedWidth }
56+ />
5057 ) ) }
5158 </ Document >
5259 </ div >
You can’t perform that action at this time.
0 commit comments