Commit 341ae57d authored by Janne Koschinski's avatar Janne Koschinski

Improved upload API

parent 13d5f7cb
......@@ -68,6 +68,7 @@ element.addEventListener("change", () => {
image_error.classList.add("alert", "error");
image_error.innerText = JSON.stringify(json.errors);
image_container.insertBefore(image_error, image_description);
image_container.classList.remove("uploading");
}
console.log(json);
......
......@@ -164,7 +164,7 @@
left: 0
bottom: 0
will-change: left, right
animation: indeterminate 4.2s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite
animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite
&::after
content: ''
position: absolute
......@@ -173,8 +173,8 @@
left: 0
bottom: 0
will-change: left, right
animation: indeterminate-short 4.2s cubic-bezier(0.165, 0.84, 0.44, 1) infinite
animation-delay: 2.25s
animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite
animation-delay: 1.125s
&:not(.uploading).progress
display: none
.image
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment