Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,15 @@ describe('Continue on a reply an Orca stop cut off', () => {
)
})

it('sits in the chat column, so it lines up with the transcript and the message box', () => {
render(<Harness />)
expect(continueButton()!.parentElement).toHaveClass(
'mx-auto',
'w-full',
'max-w-(--chat-content-max-width)'
)
})

it('is not offered by a host without the operation; the user continues by sending', () => {
mocks.capability = 'unsupported'
render(<Harness />)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,27 +117,29 @@ export function NativeChatInterruptedContinue({
'Continue, and the agent first checks whether its last step finished.'
)
return (
<div className="mx-auto flex w-full max-w-4xl items-center justify-end px-4 py-1">
<Tooltip>
<TooltipTrigger asChild>
<Button
type="button"
variant="ghost"
size="xs"
aria-describedby={explanationId}
onClick={continuation.continueNow}
>
<Play className="size-3" />
{translate('components.native-chat.interruptedContinue.continue', 'Continue')}
</Button>
</TooltipTrigger>
<TooltipContent side="top" sideOffset={4}>
<div className="px-3 py-1 sm:px-4">
<div className="mx-auto flex w-full max-w-(--chat-content-max-width) items-center justify-end">
<Tooltip>
<TooltipTrigger asChild>
<Button
type="button"
variant="ghost"
size="xs"
aria-describedby={explanationId}
onClick={continuation.continueNow}
>
<Play className="size-3" />
{translate('components.native-chat.interruptedContinue.continue', 'Continue')}
</Button>
</TooltipTrigger>
<TooltipContent side="top" sideOffset={4}>
{explanation}
</TooltipContent>
</Tooltip>
<span id={explanationId} className="sr-only">
{explanation}
</TooltipContent>
</Tooltip>
<span id={explanationId} className="sr-only">
{explanation}
</span>
</span>
</div>
</div>
)
}
Loading