Skip to content

Commit 772b621

Browse files
thdxropencode
authored andcommitted
make reasoning parts less ugly
1 parent ee1e830 commit 772b621

File tree

1 file changed

+13
-13
lines changed
  • packages/opencode/src/cli/cmd/tui/routes/session

1 file changed

+13
-13
lines changed

packages/opencode/src/cli/cmd/tui/routes/session/index.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -951,23 +951,23 @@ function ReasoningPart(props: { last: boolean; part: ReasoningPart; message: Ass
951951
<Show when={props.part.text.trim()}>
952952
<box
953953
id={"text-" + props.part.id}
954+
paddingLeft={2}
954955
marginTop={1}
955-
flexShrink={0}
956+
flexDirection="row"
957+
gap={1}
956958
border={["left"]}
957959
customBorderChars={SplitBorder.customBorderChars}
958-
borderColor={theme.backgroundPanel}
960+
borderColor={theme.backgroundElement}
959961
>
960-
<box paddingTop={1} paddingBottom={1} paddingLeft={2} backgroundColor={theme.backgroundPanel}>
961-
<code
962-
filetype="markdown"
963-
drawUnstyledText={false}
964-
streaming={true}
965-
syntaxStyle={syntax()}
966-
content={props.part.text.trim()}
967-
conceal={ctx.conceal()}
968-
fg={theme.text}
969-
/>
970-
</box>
962+
<code
963+
filetype="markdown"
964+
drawUnstyledText={false}
965+
streaming={true}
966+
syntaxStyle={syntax()}
967+
content={props.part.text.trim()}
968+
conceal={ctx.conceal()}
969+
fg={theme.text}
970+
/>
971971
</box>
972972
</Show>
973973
)

0 commit comments

Comments
 (0)