fix style of chat message log

This commit is contained in:
JzoNg
2024-03-18 16:37:18 +08:00
parent 3e9c7dccc0
commit 8d4f40bc7c
3 changed files with 20 additions and 5 deletions

View File

@ -37,10 +37,11 @@ const MessageLogModal: FC<MessageLogModalProps> = ({
return (
<div
className={cn('fixed top-16 bottom-2 flex flex-col py-3 bg-white border-[0.5px] border-gray-200 rounded-xl shadow-xl z-10')}
className={cn('fixed bottom-2 flex flex-col py-3 bg-white border-[0.5px] border-gray-200 rounded-xl shadow-xl z-10')}
style={{
width: fixedWidth ? 400 : width,
left: fixedWidth ? `${8 + width - 400}px` : '8px',
top: fixedWidth ? 56 + 56 : 56 + 8,
left: fixedWidth ? `${8 + width - 400 - 200}px` : '8px',
}}
ref={ref}
>