Skip to content

Commit 206d7bc

Browse files
committed
chore: tidy footer layout and branch spacing
1 parent ddad28c commit 206d7bc

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

cli/src/chat.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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}

cli/src/components/message-block.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)