Skip to content

Commit d2efe26

Browse files
committed
Fix selector and hover state inconsistencies in Hugging Chat and response panel styling
1 parent 6a7e287 commit d2efe26

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎apps/browser/src/content-scripts/send-prompt-content-script/chatbots/hugging-chat.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export const hugging_chat: Chatbot = {
131131
get_chat_turn: (f) => f.closest('div[data-message-role="assistant"]'),
132132
perform_copy: (f) => {
133133
const copy_button = f.querySelector(
134-
'button:nth-child(2)'
134+
'button:nth-of-type(2)'
135135
) as HTMLElement
136136
if (!copy_button) {
137137
report_initialization_error({

‎packages/ui/src/components/editor/panel/Responses/Responses.module.scss‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@
3535

3636
&--selected {
3737
background-color: var(--vscode-list-inactiveSelectionBackground);
38+
3839
&:hover {
39-
background-color: var(--vscode-list-hoverBackground);
40+
background-color: var(--vscode-list-inactiveSelectionBackground);
4041
}
4142
}
4243

0 commit comments

Comments
 (0)