This commit is contained in:
Simon Knott 2025-02-13 10:58:10 +01:00
parent 6e910d93c3
commit a3f29848cc
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC
2 changed files with 9 additions and 6 deletions

View file

@ -26,6 +26,9 @@
flex: 1;
overflow-y: auto;
padding: 16px;
display: flex;
flex-direction: column;
gap: 16px;
}
@ -41,8 +44,8 @@
}
.message-icon {
width: 28px;
height: 28px;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
@ -53,12 +56,12 @@
.message-content {
background-color: var(--vscode-titleBar-inactiveBackground);
color: var(--vscode-titleBar-activeForeground);
padding: 1px 8px;
margin-bottom: 16px;
padding: 2px 8px;
}
.message-content pre {
text-wrap: auto;
overflow-wrap: anywhere;
}
.user-message .message-content {
@ -70,7 +73,7 @@
position: sticky;
bottom: 0;
display: flex;
height: 50px;
height: 64px;
gap: 8px;
padding: 10px;
background-color: var(--vscode-sideBar-background);

View file

@ -129,7 +129,7 @@ function Error({ message, error, wallTime, sdkLanguage, pageSnapshot, revealInSo
</div>}
<span style={{ position: 'absolute', right: '5px' }}>
{llmAvailable
? <ToolbarButton onClick={() => setShowLLM(v => !v)} title="Fix with AI" className='copy-to-clipboard-text-button'>{showLLM ? 'Hide AI' : 'Fix with AI'}</ToolbarButton>
? <ToolbarButton onClick={() => setShowLLM(v => !v)} style={{ width: "96px", justifyContent: 'center' }} title="Fix with AI" className='copy-to-clipboard-text-button'>{showLLM ? 'Hide AI' : 'Fix with AI'}</ToolbarButton>
: <CopyPromptButton error={message} pageSnapshot={pageSnapshot} diff={diff} />}
</span>
</div>