CSS 使人抓狂

This commit is contained in:
CrescentLeaf
2025-04-20 00:58:52 +08:00
parent 65ff48dabc
commit f305225eb3
8 changed files with 242 additions and 28 deletions

View File

@@ -2,7 +2,7 @@
* 消息容器
* @returns { React.JSX.Element }
*/
export default function MessageContainer({ children, ...props } = {}) {
export default function MessageContainer({ children, style, ...props } = {}) {
return (
<div style={{
display: 'flex',
@@ -10,7 +10,8 @@ export default function MessageContainer({ children, ...props } = {}) {
justifyContent: 'flex-end',
alignItems: 'center',
paddingTop: '10px',
paddingBottom: '14px'
paddingBottom: '14px',
...style,
}}
{...props}>
{children}