From e814a8f75b71be5b48ba2cc7c7520aaab50d0c7b Mon Sep 17 00:00:00 2001 From: BuildTools Date: Wed, 7 Aug 2024 15:23:35 -0400 Subject: [PATCH 1/2] Implement editor --- app.py | 3 +++ static/master-styles.css | 8 ++++++++ templates/_base.html | 4 +++- templates/editor.html | 15 +++++++++++---- 4 files changed, 25 insertions(+), 5 deletions(-) diff --git a/app.py b/app.py index 6594536..4741c8b 100644 --- a/app.py +++ b/app.py @@ -451,6 +451,9 @@ def studios(id, tab): name_len=len(data["title"]), ) +@app.get("/editor") +def editor(): + return render_template("editor.html") @app.errorhandler(werkexcept.NotFound) def err404(e: Exception): diff --git a/static/master-styles.css b/static/master-styles.css index 9423368..cb2d270 100644 --- a/static/master-styles.css +++ b/static/master-styles.css @@ -504,4 +504,12 @@ body { display: block; text-overflow: ellipsis; white-space: nowrap; +} + +.editor-wrapper { + position: fixed; + bottom: 0; + left: 0; + width: 100%; + height: 96%; } \ No newline at end of file diff --git a/templates/_base.html b/templates/_base.html index 2649435..895a346 100644 --- a/templates/_base.html +++ b/templates/_base.html @@ -52,6 +52,8 @@