FIX: Copy & Fullscreen button edits in codeblocks (#20483)
This commit is contained in:
parent
5138caf525
commit
366f5e08d7
|
@ -113,6 +113,9 @@ export default class CodeblockButtons {
|
|||
copyButton.ariaLabel = I18n.t("copy_codeblock.copy");
|
||||
copyButton.innerHTML = iconHTML("copy");
|
||||
wrapperEl.appendChild(copyButton);
|
||||
wrapperEl.style.right = `${
|
||||
codeBlock.offsetWidth - codeBlock.clientWidth
|
||||
}px`;
|
||||
}
|
||||
|
||||
if (
|
||||
|
|
|
@ -1022,15 +1022,7 @@ pre {
|
|||
|
||||
.codeblock-button-wrapper {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
display: flex;
|
||||
|
||||
.copy-cmd {
|
||||
right: 0;
|
||||
}
|
||||
.copy-fullscreen {
|
||||
right: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
.copy-cmd,
|
||||
|
@ -1042,8 +1034,10 @@ pre {
|
|||
min-height: 0;
|
||||
font-size: var(--font-down-2);
|
||||
opacity: 0.7;
|
||||
cursor: pointer;
|
||||
|
||||
&.action-complete {
|
||||
cursor: auto;
|
||||
.d-icon {
|
||||
color: var(--tertiary);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue