Skip to content
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

prevent focus loss when chat code block toolbar dropdown More... closes #244990

Merged
merged 15 commits into from
Apr 4, 2025
11 changes: 7 additions & 4 deletions src/vs/workbench/contrib/chat/browser/codeBlockPart.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
}

.interactive-result-code-block .interactive-result-code-block-toolbar {
display: none;
opacity: 0;
pointer-events: none;
}

.interactive-result-code-block .interactive-result-code-block-toolbar > .monaco-action-bar,
Expand Down Expand Up @@ -48,12 +49,14 @@
.interactive-result-code-block:hover .interactive-result-code-block-toolbar,
.interactive-result-code-block .interactive-result-code-block-toolbar:focus-within,
.interactive-result-code-block.focused .interactive-result-code-block-toolbar {
display: initial;
opacity: 1;
border-radius: 2px;
pointer-events: auto;
}

.interactive-result-code-block .interactive-result-code-block-toolbar.force-visibility .monaco-toolbar {
display: initial !important;
.interactive-result-code-block .interactive-result-code-block-toolbar.force-visibility {
opacity: 1 !important;
pointer-events: auto !important;
}

.interactive-item-container .value .rendered-markdown [data-code] {
Expand Down
Loading