mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-21 09:17:53 +00:00
chore(vscode-ide-companion): rm markdown code copy button
This commit is contained in:
@@ -160,49 +160,6 @@
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.markdown-content .code-block-wrapper {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.markdown-content .code-block-wrapper pre {
|
||||
padding-top: 1rem; /* Reduced padding - room for the button height */
|
||||
padding-right: 2rem; /* Reduced padding - room for the button width */
|
||||
}
|
||||
|
||||
.markdown-content .code-block-wrapper .copy-button {
|
||||
position: absolute;
|
||||
top: 6px;
|
||||
right: 6px;
|
||||
padding: 2px 8px;
|
||||
font-size: 12px;
|
||||
line-height: 1.6;
|
||||
border-radius: 4px;
|
||||
border: 1px solid var(--app-primary-border-color);
|
||||
background-color: var(--app-primary-background, rgba(255, 255, 255, 0.1));
|
||||
color: var(--app-secondary-foreground);
|
||||
cursor: pointer;
|
||||
z-index: 1;
|
||||
opacity: 0; /* show on hover to reduce visual noise */
|
||||
transition: opacity 100ms ease-in-out;
|
||||
pointer-events: none; /* prevent blocking text selection */
|
||||
}
|
||||
|
||||
.markdown-content .code-block-wrapper:hover .copy-button,
|
||||
.markdown-content .code-block-wrapper .copy-button:focus {
|
||||
opacity: 1;
|
||||
pointer-events: auto; /* enable interaction when visible */
|
||||
}
|
||||
|
||||
.markdown-content .code-block-wrapper .copy-button:hover {
|
||||
background-color: var(--app-list-hover-background, rgba(127, 127, 127, 0.2));
|
||||
border-color: var(--app-input-active-border, rgba(97, 95, 255, 0.5));
|
||||
}
|
||||
|
||||
.markdown-content .code-block-wrapper .copy-button:disabled {
|
||||
opacity: 0.7;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.markdown-content pre code {
|
||||
background: none;
|
||||
border: none;
|
||||
|
||||
Reference in New Issue
Block a user