mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-22 02:54:31 -07:00
fix(cli): stabilize UI rendering and make tests robust to platform differences
This commit is contained in:
@@ -19,7 +19,7 @@ interface ThinkingMessageProps {
|
||||
}
|
||||
|
||||
const THINKING_LEFT_PADDING = 1;
|
||||
const VERTICAL_LINE_WIDTH = 2;
|
||||
const VERTICAL_LINE_WIDTH = 1;
|
||||
|
||||
function splitGraphemes(value: string): string[] {
|
||||
if (typeof Intl !== 'undefined' && 'Segmenter' in Intl) {
|
||||
@@ -148,7 +148,7 @@ export const ThinkingMessage: React.FC<ThinkingMessageProps> = ({
|
||||
|
||||
const verticalLine = (
|
||||
<Box width={VERTICAL_LINE_WIDTH}>
|
||||
<Text color={theme.text.secondary}>│ </Text>
|
||||
<Text color={theme.text.secondary}>│</Text>
|
||||
</Box>
|
||||
);
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
||||
|
||||
exports[`ThinkingMessage > normalizes escaped newline tokens 1`] = `
|
||||
" │
|
||||
│ Matching the Blocks
|
||||
│ Some more text
|
||||
" │
|
||||
│ Matching the Blocks
|
||||
│ Some more text
|
||||
"
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user