From 84c706bf89dc5781b4335488f79baaa46450bfc5 Mon Sep 17 00:00:00 2001 From: Maximilian Mader Date: Sun, 19 Aug 2018 02:11:43 +0200 Subject: [PATCH] Improve CSS to avoid errors in some styles --- files/style/be.bastelstu.chat.scss | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/files/style/be.bastelstu.chat.scss b/files/style/be.bastelstu.chat.scss index f3ed25f..50534a5 100644 --- a/files/style/be.bastelstu.chat.scss +++ b/files/style/be.bastelstu.chat.scss @@ -547,6 +547,17 @@ #tpl_chat_log { html.fullscreen { #tpl_chat_room, #tpl_chat_log { + // Some styles might limit the pageContainers width and height, + // we remove margins and paddings here as it shouldn’t cause problems + // in most styles but might fix more. + .pageContainer { + margin: 0; + padding: 0; + max-height: 100%; + max-width: 100%; + width: 100%; + } + .pageHeaderContainer, .pageNavigation, .pageFooter { @@ -555,7 +566,7 @@ html.fullscreen { .main { @include screen-sm-up { - height: 0; // Workaround to get Firefox and Chrome to behave the same regarding page overflow + height: 100vh; } padding: 14px 0;