fix: prompt button should not be hidden by error (#35268)

This commit is contained in:
Simon Knott 2025-03-25 18:26:04 +01:00 committed by GitHub
parent 273df454e0
commit 6f1ec11072
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -17,8 +17,8 @@
@import '@web/third_party/vscode/colors.css';
.test-error-container {
position: relative;
white-space: pre;
overflow: auto;
flex: none;
padding: 0;
background-color: var(--color-canvas-subtle);
@ -28,6 +28,7 @@
}
.test-error-view {
overflow: auto;
padding: 16px;
}

View File

@ -28,7 +28,7 @@ export const TestErrorView: React.FC<{
return (
<CodeSnippet code={error} testId={testId}>
{prompt && (
<div style={{ float: 'right', margin: 10 }}>
<div style={{ position: 'absolute', right: 0, padding: '10px' }}>
<PromptButton prompt={prompt} />
</div>
)}