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:
n4ze3m 2024-11-02 16:35:06 +05:30
parent 9089653961
commit 9f1873d37a

View File

@ -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)
}
}