Force visibility of code execution buttons with defensive CSS and improved z-index
This commit is contained in:
parent
b40ff56b23
commit
117fee0d30
3 changed files with 32 additions and 24 deletions
|
|
@ -113,6 +113,8 @@ function addCodeBlockCopyButtons(element) {
|
|||
buttonContainer.style.right = "8px";
|
||||
buttonContainer.style.display = "flex";
|
||||
buttonContainer.style.gap = "4px";
|
||||
buttonContainer.style.zIndex = "10";
|
||||
buttonContainer.style.pointerEvents = "auto";
|
||||
|
||||
// Create copy button
|
||||
const copyBtn = document.createElement("button");
|
||||
|
|
|
|||
|
|
@ -836,21 +836,24 @@ dialog#tts-modal {
|
|||
|
||||
/* Code block styles */
|
||||
.uncloseai-code-copy-btn {
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
color: white;
|
||||
border: 1px solid rgba(255, 255, 255, 0.3);
|
||||
padding: 4px 8px;
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
opacity: 0.9;
|
||||
transition: all 0.2s;
|
||||
white-space: nowrap;
|
||||
background: rgba(0, 0, 0, 0.6) !important;
|
||||
color: white !important;
|
||||
border: 1px solid rgba(255, 255, 255, 0.3) !important;
|
||||
padding: 4px 8px !important;
|
||||
border-radius: 4px !important;
|
||||
font-size: 14px !important;
|
||||
cursor: pointer !important;
|
||||
opacity: 0.9 !important;
|
||||
transition: all 0.2s !important;
|
||||
white-space: nowrap !important;
|
||||
display: inline-block !important;
|
||||
visibility: visible !important;
|
||||
pointer-events: auto !important;
|
||||
}
|
||||
|
||||
.uncloseai-code-copy-btn:hover {
|
||||
opacity: 1;
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
opacity: 1 !important;
|
||||
background: rgba(0, 0, 0, 0.8) !important;
|
||||
}
|
||||
|
||||
/* Message action buttons */
|
||||
|
|
|
|||
|
|
@ -906,21 +906,24 @@ dialog#tts-modal {
|
|||
|
||||
/* Code block styles */
|
||||
.uncloseai-code-copy-btn {
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
color: white;
|
||||
border: 1px solid rgba(255, 255, 255, 0.3);
|
||||
padding: 4px 8px;
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
opacity: 0.9;
|
||||
transition: all 0.2s;
|
||||
white-space: nowrap;
|
||||
background: rgba(0, 0, 0, 0.6) !important;
|
||||
color: white !important;
|
||||
border: 1px solid rgba(255, 255, 255, 0.3) !important;
|
||||
padding: 4px 8px !important;
|
||||
border-radius: 4px !important;
|
||||
font-size: 14px !important;
|
||||
cursor: pointer !important;
|
||||
opacity: 0.9 !important;
|
||||
transition: all 0.2s !important;
|
||||
white-space: nowrap !important;
|
||||
display: inline-block !important;
|
||||
visibility: visible !important;
|
||||
pointer-events: auto !important;
|
||||
}
|
||||
|
||||
.uncloseai-code-copy-btn:hover {
|
||||
opacity: 1;
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
opacity: 1 !important;
|
||||
background: rgba(0, 0, 0, 0.8) !important;
|
||||
}
|
||||
|
||||
/* Message action buttons */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue