feat: Improve download button placement
Move the download button to a dedicated container for improved visual clarity and consistency within the modal.
This commit is contained in:
parent
9089653961
commit
9f1873d37a
@ -66,10 +66,12 @@ export default defineContentScript({
|
||||
)
|
||||
}
|
||||
})
|
||||
copyButton.parentElement!.insertBefore(
|
||||
downloadButton,
|
||||
copyButton.nextSibling
|
||||
)
|
||||
const buttonContainer = document.createElement('div')
|
||||
buttonContainer.classList.add("mb-3")
|
||||
buttonContainer.style.display = 'flex'
|
||||
buttonContainer.style.justifyContent = 'flex-end'
|
||||
buttonContainer.appendChild(downloadButton)
|
||||
modal.querySelector("pre")!.insertAdjacentElement("afterend", buttonContainer)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user