File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export function _CompactMessageGroup(props: _MessageGroupProps) {
3030 { timestamp }
3131 </ Typo . Footnote >
3232 </ Row >
33- < div >
33+ < div className = { fillWidth } >
3434 { Children . map ( children , ( child ) => {
3535 if ( isValidElement < MessageProps > ( child ) ) {
3636 return cloneElement ( child , { variant : 'compact' , sender } ) ;
Original file line number Diff line number Diff line change 11import { _Message } from '@/components/atom/message' ;
22import { Paragraph } from '@/components/atom/typography' ;
33import { Column } from '@/components/layout/column' ;
4+ import { fillWidth } from '@/styles/utils.css' ;
45import { spacing } from '@/tokens/attribute.css' ;
56import type { _MessageProps } from './types' ;
67
78export function _CompactMessage ( props : _MessageProps ) {
89 const { reply, reactions = [ ] , children } = props ;
910
1011 return (
11- < Column gap = { spacing [ 6 ] } >
12- < Column align = 'start' >
12+ < Column className = { fillWidth } gap = { spacing [ 6 ] } >
13+ < Column className = { fillWidth } align = 'start' >
1314 { reply && (
1415 < _Message . Reply author = { reply . author } > { reply . content } </ _Message . Reply >
1516 ) }
1617 { typeof children === 'string' ? (
17- < Paragraph . Body > { children } </ Paragraph . Body >
18+ < Paragraph . Body className = { fillWidth } > { children } </ Paragraph . Body >
1819 ) : (
1920 children
2021 ) }
You can’t perform that action at this time.
0 commit comments