style: textarea

This commit is contained in:
Jing Hua 2023-03-04 11:05:03 +08:00
parent 710f4c3f65
commit b6656f43e7

View file

@ -300,13 +300,13 @@ const EditView = ({
<> <>
<textarea <textarea
ref={textareaRef} ref={textareaRef}
className='m-0 resize-none border border-gray-400/30 rounded-lg bg-transparent px-2 py-1 overflow-y-hidden focus:ring-0 focus-visible:ring-0' className='m-0 resize-none rounded-lg bg-transparent overflow-y-hidden focus:ring-0 focus-visible:ring-0 focus:outline-none leading-7'
onChange={(e) => { onChange={(e) => {
_setContent(e.target.value); _setContent(e.target.value);
}} }}
value={_content} value={_content}
onInput={handleInput} onInput={handleInput}
rows={10} rows={1}
></textarea> ></textarea>
<div className='text-center mt-2 flex justify-center'> <div className='text-center mt-2 flex justify-center'>
<button <button