mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-01 15:34:29 -07:00
ui(cli): reduce length of Ctrl+O hint (#20490)
This commit is contained in:
@@ -187,7 +187,9 @@ describe('ToastDisplay', () => {
|
|||||||
constrainHeight: true,
|
constrainHeight: true,
|
||||||
});
|
});
|
||||||
await waitUntilReady();
|
await waitUntilReady();
|
||||||
expect(lastFrame()).toContain('Press Ctrl+O to show more lines');
|
expect(lastFrame()).toContain(
|
||||||
|
'Ctrl+O to show more lines of the last response',
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('renders collapse hint when showIsExpandableHint is true and constrainHeight is false', async () => {
|
it('renders collapse hint when showIsExpandableHint is true and constrainHeight is false', async () => {
|
||||||
@@ -196,6 +198,8 @@ describe('ToastDisplay', () => {
|
|||||||
constrainHeight: false,
|
constrainHeight: false,
|
||||||
});
|
});
|
||||||
await waitUntilReady();
|
await waitUntilReady();
|
||||||
expect(lastFrame()).toContain('Press Ctrl+O to collapse lines');
|
expect(lastFrame()).toContain(
|
||||||
|
'Ctrl+O to collapse lines of the last response',
|
||||||
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ export const ToastDisplay: React.FC = () => {
|
|||||||
const action = uiState.constrainHeight ? 'show more' : 'collapse';
|
const action = uiState.constrainHeight ? 'show more' : 'collapse';
|
||||||
return (
|
return (
|
||||||
<Text color={theme.text.accent}>
|
<Text color={theme.text.accent}>
|
||||||
Press Ctrl+O to {action} lines for the most recent response
|
Ctrl+O to {action} lines of the last response
|
||||||
</Text>
|
</Text>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user