From c081c2bec22cafa20178ec31b004fc11fcc2ddfc Mon Sep 17 00:00:00 2001 From: Nekobit Date: Sun, 29 May 2022 00:28:36 -0400 Subject: [PATCH] Bigly UI improvements (#290) * fuck u bootstrap * cleanup * Improve CSS * Vote and reply animations --- files/__main__.py | 11 +++-------- files/templates/header.html | 8 +++++--- files/templates/home.html | 6 +++--- 3 files changed, 11 insertions(+), 14 deletions(-) diff --git a/files/__main__.py b/files/__main__.py index 3f0a61e254..da7c2681f4 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -99,13 +99,8 @@ def before_request(): if not app.config['SETTINGS']['Bots'] and request.headers.get("Authorization"): abort(503) g.db = db_session() - - if '; wv) ' in ua: g.webview = True - else: g.webview = False - - if 'iphone' in ua or 'ipad' in ua or 'ipod' in ua or 'mac os' in ua or ' firefox/' in ua: g.inferior_browser = True - else: g.inferior_browser = False - + g.webview = '; wv) ' in ua + g.inferior_browser = 'iphone' in ua or 'ipad' in ua or 'ipod' in ua or 'mac os' in ua or ' firefox/' in ua @app.teardown_appcontext def teardown_request(error): @@ -125,4 +120,4 @@ if app.config["SERVER_NAME"] == 'localhost': elif "load_chat" in argv: from files.routes.chat import * else: - from files.routes import * \ No newline at end of file + from files.routes import * diff --git a/files/templates/header.html b/files/templates/header.html index 03620439dc..5d2c5fbfdf 100644 --- a/files/templates/header.html +++ b/files/templates/header.html @@ -1,5 +1,5 @@ -