From 7c88c2e7e5215c7863bec892cdd9447bf09f307b Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 4 May 2022 23:42:34 +0200 Subject: [PATCH] dgf --- files/__main__.py | 5 ++++- files/templates/chat.html | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/files/__main__.py b/files/__main__.py index 09e06c488..e0dde929e 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -117,7 +117,10 @@ def after_request(response): response.headers.add("X-Frame-Options", "deny") return response -if "load_chat" in argv: +if app.config["SERVER_NAME"] == 'localhost': + from files.routes import * + from files.routes.chat import * +elif "load_chat" in argv: from files.routes.chat import * else: from files.routes import * \ No newline at end of file diff --git a/files/templates/chat.html b/files/templates/chat.html index a988d79fa..f36d9ddb2 100644 --- a/files/templates/chat.html +++ b/files/templates/chat.html @@ -40,7 +40,6 @@ #chat-window { -ms-overflow-style: none; scrollbar-width: none; - flex-direction: column-reverse !important; } .chat-mention { @@ -189,7 +188,7 @@ - + {% include "emoji_modal.html" %} {% include "expanded_image_modal.html" %}