diff --git a/app.py b/app.py index 6273837..4d29071 100644 --- a/app.py +++ b/app.py @@ -761,12 +761,9 @@ def send_songs(ref): def send_manifest(): return cache_wrap(flask.send_from_directory("public", "manifest.json"), 3600) -@app.route("/upload/") -def send_upload(): - return cache_wrap(flask.send_from_directory("public/upload", "index.html"), 3600) - +@app.route("/upload/", defaults={"ref": "index.html"}) @app.route("/upload/") -def send_upload_sub(ref): +def send_upload(ref): return cache_wrap(flask.send_from_directory("public/upload", ref), 3600) @app.route("/upload", methods=["POST"]) diff --git a/public/upload/index.html b/public/upload/index.html index c48ff29..f0432e2 100644 --- a/public/upload/index.html +++ b/public/upload/index.html @@ -16,12 +16,10 @@
- -
- -
+ +
diff --git a/public/upload/style.css b/public/upload/style.css index 89b8d63..e885faf 100644 --- a/public/upload/style.css +++ b/public/upload/style.css @@ -1,3 +1,8 @@ +body > *:not(:last-child) { + margin-bottom: 3rem; +} + #error-view { + word-break: break-word; white-space: pre-line; }