Skip to content

Commit fd78a47

Browse files
authored
fix(fe): adjust modal style (#229)
fix: adjust modal dimensions for CreateQuestionModal and CreateReplyModal
1 parent 5dbb0df commit fd78a47

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

apps/client/src/components/modal/CreateQuestionModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@ function CreateQuestionModal({ question }: CreateQuestionModalProps) {
9999
}, [question]);
100100

101101
return (
102-
<div className='inline-flex min-h-[45dvh] min-w-[45dvw] flex-col items-center justify-center gap-2.5 rounded-lg bg-gray-50 p-8 shadow'>
102+
<div className='inline-flex h-[50dvh] w-[50dvw] flex-col items-center justify-center gap-2.5 rounded-lg bg-gray-50 p-8 shadow'>
103103
<div className='inline-flex h-full w-full flex-grow flex-col items-center justify-center gap-2.5'>
104104
<div className='inline-flex items-center justify-start gap-2.5 self-stretch border-b border-gray-200 pb-1'>
105105
<div className='text-lg font-semibold text-black'>질문하기</div>
106106
</div>
107-
<div className='inline-flex h-full shrink grow basis-0 items-center justify-center gap-2.5 self-stretch'>
107+
<div className='inline-flex h-full max-h-[35vh] shrink grow basis-0 items-center justify-center gap-2.5 self-stretch'>
108108
<textarea
109109
className='shrink grow basis-0 resize-none flex-col items-start justify-start gap-2 self-stretch whitespace-pre-wrap rounded border border-gray-200 bg-white p-4 focus:outline-none'
110110
value={body}

apps/client/src/components/modal/CreateReplyModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function CreateReplyModal({ question, reply }: CreateReplyModalProps) {
109109
}, [reply]);
110110

111111
return (
112-
<div className='inline-flex min-h-[45dvh] min-w-[45dvw] flex-col items-center justify-center gap-2.5 rounded-lg bg-gray-50 p-8 shadow'>
112+
<div className='inline-flex h-[50dvh] w-[50dvw] flex-col items-center justify-center gap-2.5 rounded-lg bg-gray-50 p-8 shadow'>
113113
<div className='inline-flex h-full w-full flex-grow flex-col items-center justify-center gap-4'>
114114
<div className='inline-flex items-center justify-start gap-2.5 self-stretch border-b border-gray-200 pb-1'>
115115
<div className='text-lg font-semibold text-black'>답변하기</div>
@@ -121,7 +121,7 @@ function CreateReplyModal({ question, reply }: CreateReplyModalProps) {
121121
</Markdown>
122122
)}
123123
</div>
124-
<div className='inline-flex h-full shrink grow basis-0 items-center justify-center gap-2.5 self-stretch'>
124+
<div className='inline-flex h-full max-h-[25dvh] shrink grow basis-0 items-center justify-center gap-2.5 self-stretch'>
125125
<textarea
126126
className='h-full shrink grow basis-0 resize-none flex-col items-start justify-start gap-2 self-stretch whitespace-pre-wrap rounded border border-gray-200 bg-white p-4 focus:outline-none'
127127
value={body}

0 commit comments

Comments
 (0)