@@ -14,6 +14,7 @@ import circleInfoBtn from "../../assets/image/button/circleInfoBtn.svg";
1414import "./ScriptContent.scss" ;
1515import "./../../styles/utilities.css" ;
1616import { useNavigate } from "react-router-dom" ;
17+ import clsx from "clsx" ;
1718
1819/**
1920 * 구매한 작품 페이지, 작품 관리 페이지의 상품 란,
@@ -43,13 +44,20 @@ const ScriptContent = ({
4344 const formattedDate = `${ year } . ${ month } . ${ day } .` ;
4445
4546 const { widthConditions } = useWindowDimensions ( ) ;
47+ const { isMobile, isSmallMobile } = useWindowDimensions ( ) . widthConditions ;
4648
4749 const navigate = useNavigate ( ) ;
4850
49-
5051 return (
5152 < div key = { index } className = "script-content " >
52- < p className = "date p-large-bold c-grey-8f8f8f" > { formattedDate } </ p >
53+ < p
54+ className = { clsx (
55+ "date c-grey-8f8f8f" ,
56+ ! isSmallMobile ? "p-large-bold" : "p-small-bold"
57+ ) }
58+ >
59+ { formattedDate }
60+ </ p >
5361 < hr className = "border-[#caabff]" > </ hr >
5462 { items . map ( ( script , idx ) => (
5563 < div key = { script . id } >
@@ -71,7 +79,10 @@ const ScriptContent = ({
7179 id = "title"
7280 >
7381 < div className = "relative" >
74- < p className = "p-large-bold" id = "title" >
82+ < p
83+ className = { ! isSmallMobile ? "p-large-bold" : "p-small-bold" }
84+ id = "title"
85+ >
7586 { script . title || "제목 없음" }
7687 </ p >
7788 { isRoute && (
@@ -104,7 +115,10 @@ const ScriptContent = ({
104115 </ div >
105116
106117 < hr className = "border border-solid border-[#9E9E9E]" > </ hr >
107- < p className = "p-large-medium" id = "author" >
118+ < p
119+ className = { ! isSmallMobile ? "p-large-medium" : "p-12-bold" }
120+ id = "author"
121+ >
108122 { currentPage === "1"
109123 ? ""
110124 : ! script . delete
@@ -126,8 +140,12 @@ const ScriptContent = ({
126140 type = "perform"
127141 value = { script . performancePrice || 0 }
128142 />
129- < div style = { { height : "32px" } } > </ div >
130- { widthConditions . isMobile && (
143+ < div
144+ style = {
145+ ! isSmallMobile ? { height : "32px" } : { height : "16px" }
146+ }
147+ > </ div >
148+ { ( isMobile || isSmallMobile ) && (
131149 < PurchasedPerformPossibleInfo script = { script } />
132150 ) }
133151 </ >
@@ -141,10 +159,12 @@ const ScriptContent = ({
141159 />
142160 ) }
143161 { /* (모바일 화면) 작품 관리 페이지 상단 버튼: 심사 끝났을 경우 표시 */ }
144- { widthConditions . isMobile &&
162+ { ( isMobile || isSmallMobile ) &&
145163 currentPage === "1" &&
146164 script . checked === "PASS" ? (
147- < ScriptManageTopBtn className = "mobile" script = { script } />
165+ < div className = "relative" >
166+ < ScriptManageTopBtn className = "mobile" script = { script } />
167+ </ div >
148168 ) : null }
149169 </ div >
150170 < div className = " __script-content-btn" >
@@ -160,10 +180,13 @@ const ScriptContent = ({
160180 productId = { script . productId }
161181 buyPerformance = { script . buyPerformance }
162182 orderStatus = { script . orderStatus }
183+ style = {
184+ isSmallMobile ? { width : "129px" , height : "40px" } : { }
185+ }
163186 />
164187 ) : (
165188 < section className = "j-content-between" >
166- { ! widthConditions . isMobile ? (
189+ { ! ( isMobile || isSmallMobile ) ? (
167190 < PurchasedPerformPossibleInfo script = { script } />
168191 ) : (
169192 < div > </ div >
0 commit comments