refactor: 重寫消息顯示相關邏輯
This commit is contained in:
17
client/ui/chat/MessageContainer.tsx
Normal file
17
client/ui/chat/MessageContainer.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
interface Args extends React.HTMLAttributes<HTMLElement> {}
|
||||
|
||||
export default function MessageContainer({ children, style, ...props }: Args) {
|
||||
return (
|
||||
<div style={{
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
justifyContent: 'flex-end',
|
||||
alignItems: 'center',
|
||||
marginBottom: '20px',
|
||||
...style,
|
||||
}}
|
||||
{...props}>
|
||||
{children}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user