diff --git a/shop.py b/shop.py index d4ac297..c9266ae 100644 --- a/shop.py +++ b/shop.py @@ -3,9 +3,6 @@ from pprint import pprint import db import os.path - -MOBILES = ["android", "iphone", "blackberry"] - application = Flask(__name__) application.config["DEBUG"] = True application.secret_key = b'*$#@U9423jr92jioJKL_)_;dasfj()12' @@ -39,9 +36,6 @@ def index(): res = db.get_items(session["id"], session["active_id"]) data = {"title": "Shopping List", "results": res, "session": session, "list_ids": session["list_ids"]} - for device in MOBILES: - if device in request.user_agent.platform: - return render_template('mobile.html', data=data) return render_template('index.html', data=data) @application.route('/post', methods=['POST']) diff --git a/static/css/main.css b/static/css/main.css index 904d906..d899016 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -89,6 +89,7 @@ body { width: 100%; /* justify-content: center; */ display: flex; + align-items: center; } diff --git a/templates/header.html b/templates/header.html index c2f60d0..13d9cbe 100644 --- a/templates/header.html +++ b/templates/header.html @@ -6,5 +6,5 @@ - + \ No newline at end of file