mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-13 23:51:16 -07:00
fix(ui): restore cancel hint and timer display in LoadingIndicator
This commit is contained in:
@@ -87,7 +87,7 @@ export const LoadingIndicator: React.FC<LoadingIndicatorProps> = ({
|
||||
const cancelAndTimerContent =
|
||||
showCancelAndTimer &&
|
||||
streamingState !== StreamingState.WaitingForConfirmation
|
||||
? `esc to cancel, ${elapsedTime < 60 ? `${elapsedTime}s` : formatDuration(elapsedTime * 1000)}`
|
||||
? `(esc to cancel, ${elapsedTime < 60 ? `${elapsedTime}s` : formatDuration(elapsedTime * 1000)})`
|
||||
: null;
|
||||
|
||||
const wittyPhraseNode =
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
||||
|
||||
exports[`<LoadingIndicator /> > should truncate long primary text instead of wrapping 1`] = `
|
||||
"MockRespondin This is an extremely long loading phrase that shoul… esc to
|
||||
gSpinner cancel, 5s
|
||||
"MockRespondin This is an extremely long loading phrase that shoul…(esc to
|
||||
gSpinner cancel, 5s)
|
||||
"
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user