From c8ef38ffeb2e49690066a303f8cf833239841732 Mon Sep 17 00:00:00 2001 From: pluja Date: Mon, 31 Aug 2020 13:28:57 +0200 Subject: [PATCH] Improve UI on mobile devices --- app/routes.py | 6 +++--- app/static/styles.css | 4 ++++ app/templates/_video_item.html | 4 ++-- app/templates/base.html | 1 + 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/app/routes.py b/app/routes.py index 7a0cd97..c330b89 100644 --- a/app/routes.py +++ b/app/routes.py @@ -423,16 +423,16 @@ def importdata(): # check if the post request has the file part if 'file' not in request.files: flash('No file part') - return redirect(request.url) + return redirect(request.referrer) file = request.files['file'] # if user does not select file, browser also # submit an empty part without filename if file.filename == '': flash('No selected file') - return redirect(request.url) + return redirect(request.referrer) if file and allowed_file(file.filename): importAccounts(file) - return render_template('settings.html') + return redirect(request.referrer) return redirect(request.referrer) diff --git a/app/static/styles.css b/app/static/styles.css index 2803614..9c7b76f 100644 --- a/app/static/styles.css +++ b/app/static/styles.css @@ -43,4 +43,8 @@ .overflow-auto{ overflow: auto; +} + +.menu{ + width: 100% !important; } \ No newline at end of file diff --git a/app/templates/_video_item.html b/app/templates/_video_item.html index f69e3b4..ad1aec8 100644 --- a/app/templates/_video_item.html +++ b/app/templates/_video_item.html @@ -3,9 +3,9 @@
- {{video.videoTitle}} + {{video.videoTitle}}
{{video.description}} diff --git a/app/templates/base.html b/app/templates/base.html index cfb099e..81f6c2d 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -8,6 +8,7 @@ {% else %} Yotter {% endif %} +