Skip to content

Commit 2fa60d5

Browse files
committed
style(MessageView): 在消息视图组件中添加左边距
- 为外层Box组件增加marginLeft样式属性 - 保持其他样式和布局不变 - 修正UI布局中提示符内容的左侧间距问题
1 parent 05de64c commit 2fa60d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/cli/src/ui/components/MessageView

packages/cli/src/ui/components/MessageView/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function PromptEchoLine({
145145
}): React.ReactElement {
146146
const contentWidth = getPromptEchoContentWidth(width);
147147
return (
148-
<Box marginBottom={1} marginY={0} width={Math.max(1, width)} flexDirection="row">
148+
<Box marginBottom={1} marginLeft={1} marginY={0} width={Math.max(1, width)} flexDirection="row">
149149
<Box width={PROMPT_ECHO_PREFIX_WIDTH}>
150150
<Text color="#229ac3">{"> "}</Text>
151151
</Box>

0 commit comments

Comments
 (0)