From 63625d5338c0dbda6f52fa29c500e25e49f9c2b8 Mon Sep 17 00:00:00 2001 From: osohyun0224 Date: Wed, 15 Nov 2023 21:51:39 +0900 Subject: [PATCH 01/15] =?UTF-8?q?=F0=9F=90=9B=20fix(InputTextLong):=20?= =?UTF-8?q?=ED=85=8D=EC=8A=A4=ED=8A=B8=20=EC=9E=85=EB=A0=A5=20=EB=B2=84?= =?UTF-8?q?=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 기존에는 텍스트 박스 중간 위치에서부터 텍스트가 입력되는 버그가 존재했습니다. - 이 버그를 수정하여 텍스트 박스 상단에서부터 입력되도록 구현하였습니다. --- src/components/Input/InputTextLong.jsx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/components/Input/InputTextLong.jsx b/src/components/Input/InputTextLong.jsx index 4290eac..e952b34 100644 --- a/src/components/Input/InputTextLong.jsx +++ b/src/components/Input/InputTextLong.jsx @@ -3,8 +3,8 @@ import styled from 'styled-components'; const InputContainer = styled.div` display: flex; flex-direction: column; - width: 320px; - margin-bottom:20px; + width: 550px; + margin-bottom: 20px; `; const Label = styled.label` @@ -14,14 +14,15 @@ const Label = styled.label` margin-bottom: 5px; `; -const Input = styled.input` - width: 550px; +const TextArea = styled.textarea` + width: 100%; height: 133px; border-radius: 10px; background-color: #FAFAFA; border: 1px solid #BBBBBB; font-family: 'Spoqa Han Sans Neo', 'sans-serif'; - padding-left: 0px; + padding: 12px; + resize: none; &:focus { outline: none; @@ -32,10 +33,10 @@ function InputLongText({ label }) { return ( - +