style: 모달 접기 버튼 추가
This commit is contained in:
parent
88632a4619
commit
2b8de3d0d0
@ -42,11 +42,14 @@ function WithDraggableHeader({ title, onClose, children }) {
|
|||||||
return (
|
return (
|
||||||
<div className="modal-head modal-handle">
|
<div className="modal-head modal-handle">
|
||||||
<h1 className="title">{title}</h1>
|
<h1 className="title">{title}</h1>
|
||||||
|
<div className='modal-btn-wrap'>
|
||||||
|
<button className='modal-fold act'></button>
|
||||||
{onClose && (
|
{onClose && (
|
||||||
<button className="modal-close" onClick={() => onClose()}>
|
<button className="modal-close" onClick={() => onClose()}>
|
||||||
닫기
|
닫기
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -133,8 +133,23 @@ $alert-color: #101010;
|
|||||||
color: $pop-color;
|
color: $pop-color;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
.modal-close{
|
.modal-btn-wrap{
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 15px;
|
||||||
|
}
|
||||||
|
.modal-fold{
|
||||||
|
display: block;
|
||||||
|
width: 15px;
|
||||||
|
height: 15px;
|
||||||
|
background: url(../../public/static/images/canvas/penal_arr_white.svg)no-repeat center;
|
||||||
|
background-size: contain;
|
||||||
|
&.act{
|
||||||
|
transform: rotate(180deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.modal-close{
|
||||||
color: transparent;
|
color: transparent;
|
||||||
font-size: 0;
|
font-size: 0;
|
||||||
width: 10px;
|
width: 10px;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user