Просмотр исходного кода

make reasoning parts less ugly

Dax Raad 3 месяцев назад
Родитель
Сommit
5e53f054c6
1 измененных файлов с 13 добавлено и 13 удалено
  1. 13 13
      packages/opencode/src/cli/cmd/tui/routes/session/index.tsx

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

@@ -951,23 +951,23 @@ function ReasoningPart(props: { last: boolean; part: ReasoningPart; message: Ass
     <Show when={props.part.text.trim()}>
       <box
         id={"text-" + props.part.id}
+        paddingLeft={2}
         marginTop={1}
-        flexShrink={0}
+        flexDirection="row"
+        gap={1}
         border={["left"]}
         customBorderChars={SplitBorder.customBorderChars}
-        borderColor={theme.backgroundPanel}
+        borderColor={theme.backgroundElement}
       >
-        <box paddingTop={1} paddingBottom={1} paddingLeft={2} backgroundColor={theme.backgroundPanel}>
-          <code
-            filetype="markdown"
-            drawUnstyledText={false}
-            streaming={true}
-            syntaxStyle={syntax()}
-            content={props.part.text.trim()}
-            conceal={ctx.conceal()}
-            fg={theme.text}
-          />
-        </box>
+        <code
+          filetype="markdown"
+          drawUnstyledText={false}
+          streaming={true}
+          syntaxStyle={syntax()}
+          content={props.part.text.trim()}
+          conceal={ctx.conceal()}
+          fg={theme.text}
+        />
       </box>
     </Show>
   )