File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -1103,11 +1103,11 @@ export const App = ({
11031103 < box
11041104 style = { {
11051105 flexDirection : 'row' ,
1106- alignItems : 'flex-start ' ,
1106+ alignItems : 'center ' ,
11071107 width : '100%' ,
11081108 } }
11091109 >
1110- < box style = { { flexGrow : 1 } } >
1110+ < box style = { { flexGrow : 1 , minWidth : 0 } } >
11111111 < MultilineInput
11121112 value = { inputValue }
11131113 onChange = { setInputValue }
Original file line number Diff line number Diff line change @@ -388,7 +388,11 @@ export const MessageBlock = ({
388388 nestedBlocks . forEach ( ( nestedBlock , nestedIdx ) => {
389389 const nestedPrevBlock =
390390 nestedIdx > 0 ? nestedBlocks [ nestedIdx - 1 ] : null
391- const nestedMarginTop = nestedPrevBlock ? 1 : 0
391+ const nestedMarginTop =
392+ nestedPrevBlock &&
393+ ( nestedPrevBlock . type === 'text' || nestedBlock . type === 'text' )
394+ ? 1
395+ : 0
392396 if ( nestedBlock . type === 'text' ) {
393397 const nestedStatus =
394398 typeof ( nestedBlock as any ) . status === 'string'
@@ -479,7 +483,11 @@ export const MessageBlock = ({
479483 < box style = { { flexDirection : 'column' , gap : 0 , width : '100%' } } >
480484 { blocks . map ( ( block , idx ) => {
481485 const prevBlock = idx > 0 ? blocks [ idx - 1 ] : null
482- const marginTop = prevBlock ? 1 : 0
486+ const marginTop =
487+ prevBlock &&
488+ ( prevBlock . type === 'text' || block . type === 'text' )
489+ ? 1
490+ : 0
483491 if ( block . type === 'text' ) {
484492 const isStreamingText = isLoading || ! isComplete
485493 const hasMarkdownContent = hasMarkdown ( block . content )
You can’t perform that action at this time.
0 commit comments