fix(style): imgs overflow style on chat
This commit is contained in:
@@ -36,11 +36,22 @@ const audioTypeMap: Record<string, string> = {
|
||||
|
||||
const AudioWrapper = styled.div`
|
||||
padding-block: 10px;
|
||||
height: max-content;
|
||||
width: max-content;
|
||||
audio {
|
||||
padding-top: 10px;
|
||||
}
|
||||
`;
|
||||
|
||||
const ImgsWrapper = styled.div.attrs({
|
||||
className: 'custom-scrollbar-horizontal'
|
||||
})`
|
||||
display: flex;
|
||||
overflow-x: auto;
|
||||
width: 100%;
|
||||
flex-direction: column;
|
||||
`;
|
||||
|
||||
type CurrentMessage = Omit<MessageItem, 'uid'>;
|
||||
|
||||
type ActionType =
|
||||
@@ -505,8 +516,9 @@ const MessageInput: React.FC<MessageInputProps> = forwardRef(
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex">
|
||||
<ImgsWrapper>
|
||||
<ThumbImg
|
||||
style={{ paddingBlockEnd: 0 }}
|
||||
dataList={message.imgs || []}
|
||||
onDelete={handleDeleteImg}
|
||||
editable={true}
|
||||
@@ -521,7 +533,7 @@ const MessageInput: React.FC<MessageInputProps> = forwardRef(
|
||||
></SimpleAudio>
|
||||
</AudioWrapper>
|
||||
)}
|
||||
</div>
|
||||
</ImgsWrapper>
|
||||
<div className="input-box">
|
||||
{actions.includes('paste') ? (
|
||||
<TextArea
|
||||
|
||||
Reference in New Issue
Block a user