Commit e6d3b9d2 by Liu

fix:输入框超出样式

parent 70d3fe5e
...@@ -186,7 +186,7 @@ const ChatEditorBase: React.FC<ChatEditorProps & WithAuthProps> = ({ checkAuth, ...@@ -186,7 +186,7 @@ const ChatEditorBase: React.FC<ChatEditorProps & WithAuthProps> = ({ checkAuth,
return ( return (
<div <div
className="flex items-end w-full max-w-[603px] h-auto relative mx-auto rounded-[24px] overflow-hidden transition duration-200 py-[8px] pl-[12px] pr-[12px] sm:py-[12px] sm:pl-[32px] sm:pr-[20px]" className="flex items-end w-full h-auto relative mx-auto rounded-[24px] overflow-hidden transition duration-200 py-[8px] pl-[12px] pr-[12px] sm:py-[12px] sm:pl-[32px] sm:pr-[20px]"
style={{ style={{
background: '#FFFFFF', background: '#FFFFFF',
border: '1px solid #0a0a0a78', border: '1px solid #0a0a0a78',
...@@ -200,7 +200,7 @@ const ChatEditorBase: React.FC<ChatEditorProps & WithAuthProps> = ({ checkAuth, ...@@ -200,7 +200,7 @@ const ChatEditorBase: React.FC<ChatEditorProps & WithAuthProps> = ({ checkAuth,
enterKeyHint="send" enterKeyHint="send"
role="textbox" role="textbox"
translate="no" translate="no"
className="w-full min-h-[40px] max-h-[48px] p-2 rounded overflow-y-auto outline-none" className="w-full min-h-[40px] max-w-[100%] max-h-[48px] p-2 rounded overflow-y-auto outline-none"
onInput={handleInput} onInput={handleInput}
onFocus={onFocus} onFocus={onFocus}
onKeyDown={handleKeyDown} onKeyDown={handleKeyDown}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment