mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-26 10:16:12 +01:00
Moved copy icon css to main.css
This commit is contained in:
parent
045ad78bb9
commit
950b226374
@ -569,6 +569,19 @@ input::file-selector-button {
|
||||
position: relative;
|
||||
transform: translateY(-13%);
|
||||
}
|
||||
#copy-image-settings {
|
||||
cursor: pointer;
|
||||
padding: 8px;
|
||||
opacity: 1;
|
||||
transition: opacity 0.5;
|
||||
}
|
||||
.collapsible:not(.active) #copy-image-settings {
|
||||
display: none;
|
||||
}
|
||||
#copy-image-settings.hidden {
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.simple-tooltip {
|
||||
border-radius: 3px;
|
||||
|
@ -349,22 +349,6 @@ document.addEventListener("dragover", dragOverHandler)
|
||||
// Adds a copy icon if the browser grants permission to write to clipboard.
|
||||
function checkWriteToClipboardPermission (result) {
|
||||
if (result.state == "granted" || result.state == "prompt") {
|
||||
const style = document.createElement('style');
|
||||
style.textContent = `
|
||||
#copy-image-settings {
|
||||
cursor: pointer;
|
||||
padding: 8px;
|
||||
opacity: 1;
|
||||
transition: opacity 0.5;
|
||||
}
|
||||
.collapsible:not(.active) #copy-image-settings {
|
||||
display: none;
|
||||
}
|
||||
#copy-image-settings.hidden {
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}`;
|
||||
document.head.append(style);
|
||||
const resetSettings = document.getElementById('reset-image-settings')
|
||||
const copyIcon = document.createElement('i')
|
||||
copyIcon.id = 'copy-image-settings'
|
||||
|
Loading…
Reference in New Issue
Block a user