Skip to content

Commit bbe3988

Browse files
committed
FIX: TextArea resize none 추가
1 parent d5ac167 commit bbe3988

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/feature/todo/weeklyTodoList/components/AddTodoButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export const AddTodoButton = ({ goal, selectedPlanId, selectedDate }: AddTodoBut
162162
<div className="flex-1 px-4">
163163
<input type="hidden" {...dateRegister} ref={dateRef} />
164164
<TextArea
165-
className="min-h-[120px] h-full"
165+
className="h-full"
166166
maxLength={30}
167167
{...register('content', {
168168
required: '내용을 입력해주세요.',

src/feature/todo/weeklyTodoList/components/EditTodoButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export const EditTodoButton = ({ todo, goal, onSubmit }: EditTodoButtonProps) =>
171171
<div className="flex-1 p-4">
172172
<input type="hidden" {...dateRegister} ref={dateRef} />
173173
<TextArea
174-
className="min-h-[120px] h-full"
174+
className="h-full"
175175
maxLength={30}
176176
{...register('content', {
177177
required: '내용을 입력해주세요.',

src/shared/components/input/TextArea.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function TextArea({
3939
maxLength={props.maxLength}
4040
onInput={handleInput}
4141
{...props}
42-
className={`w-full min-h-[88px] px-4 py-3 rounded-lg bg-[#2C2C2E] text-white placeholder-gray-500 border border-label-assistive focus:ring-2 ${
42+
className={`w-full min-h-[88px] px-4 py-3 resize-none rounded-lg bg-[#2C2C2E] text-white placeholder-gray-500 border border-label-assistive focus:ring-2 ${
4343
isError ? 'focus:ring-red-500 ring-2 ring-red-500' : 'focus:ring-primary-normal'
4444
}`}
4545
/>

0 commit comments

Comments
 (0)