-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ai): Improve styling of the chat widget #14278
feat(ai): Improve styling of the chat widget #14278
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me
@@ -128,7 +128,7 @@ const CopyToClipboardButton = (props: { code: string, clipboardService: Clipboar | |||
const copyCodeToClipboard = React.useCallback(() => { | |||
clipboardService.writeText(code); | |||
}, [code, clipboardService]); | |||
return <button className='theia-button main' onClick={copyCodeToClipboard}>Copy</button>; | |||
return <div className='button codicon codicon-copy' title='Copy' onClick={copyCodeToClipboard}></div>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should add role='button'
for accessibility reasons
@@ -150,7 +150,7 @@ const InsertCodeAtCursorButton = (props: { code: string, editorManager: EditorMa | |||
}]); | |||
} | |||
}, [code, editorManager]); | |||
return <button className='theia-button main' onClick={insertCode}>Insert at Cursor</button>; | |||
return <div className='button codicon codicon-insert' title='Insert at Cursor' onClick={insertCode}></div>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
* General improvements of margins and paddings * Give code a nicer border and more space * Replace aggressive buttons for code parts with more subtle icons * Format tool call result more nicely Contributed on behalf of STMicroelectronics
d810384
to
f2b2e61
Compare
What it does
Contributed on behalf of STMicroelectronics
How to test
Use the chat view and let an LLM generate some code, bullet list (ordered, unordered), use tool functions and check if all looks better than before.
Follow-ups
The code content part renderer could still be improved:
Review checklist
Reminder for reviewers