Minor changes
This commit is contained in:
parent
09a279861c
commit
f0625aabe5
@ -15,6 +15,7 @@ export function selectFile(arn: AnimeNotifier, button: HTMLButtonElement) {
|
||||
// Click on virtual file input element
|
||||
let input = document.createElement("input")
|
||||
input.setAttribute("type", "file")
|
||||
input.value = null
|
||||
|
||||
input.onchange = () => {
|
||||
let file = input.files[0]
|
||||
@ -38,11 +39,8 @@ export function selectFile(arn: AnimeNotifier, button: HTMLButtonElement) {
|
||||
// Preview image
|
||||
if(fileType === "image") {
|
||||
let previews = document.getElementsByClassName(button.id + "-preview")
|
||||
|
||||
for(let preview of previews) {
|
||||
previewImage(file, endpoint, previews)
|
||||
}
|
||||
}
|
||||
|
||||
uploadFile(file, fileType, endpoint, arn)
|
||||
}
|
||||
|
@ -14,9 +14,8 @@ link-color-s = 87%
|
||||
link-color-l = 45%
|
||||
link-color = hsl(link-color-h, link-color-s, link-color-l)
|
||||
|
||||
link-hover-color-l = 53%
|
||||
link-hover-color-l = calc(link-color-l + 8%)
|
||||
link-hover-color = hsl(link-color-h, link-color-s, link-hover-color-l)
|
||||
// link-hover-color = hsl(8, 89%, 53%)
|
||||
|
||||
link-active-color = link-hover-color
|
||||
pro-color = hsla(0, 100%, 73%, 0.87)
|
||||
|
@ -39,7 +39,7 @@ input
|
||||
|
||||
button, .button
|
||||
horizontal
|
||||
padding 0.5rem 1rem
|
||||
padding 0rem 1rem
|
||||
color button-color
|
||||
align-items center
|
||||
pointer-events all
|
||||
|
Loading…
Reference in New Issue
Block a user