From 2663cd08077209e0571bb8d703cbeae32784b82c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= Date: Thu, 16 Jan 2020 13:47:14 +0100 Subject: Fix autocompletion of mentions in public share auth page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The autocompletion panel is reparented to the body element and placed using an absolute position. However, as the body element used a flex layout the absolute position of the panel was ignored. Therefore now all the body elements are wrapped in another div element, which becomes the flex element and acts like the body element, so the real body element is no longer flex and reparenting the autocompletion panel to it then works as expected. Besides that the CSS for the autocompletion panel were not included in public share auth pages. Signed-off-by: Daniel Calviño Sánchez --- css/publicshareauth.scss | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) (limited to 'css/publicshareauth.scss') diff --git a/css/publicshareauth.scss b/css/publicshareauth.scss index f685c9824..685c81776 100644 --- a/css/publicshareauth.scss +++ b/css/publicshareauth.scss @@ -5,9 +5,29 @@ * the style for the adjusted layout, which is not the proper one for them, and * this would cause the elements to "jump" to their final position once the * layout was adjusted. */ -#body-login.talk-sidebar-enabled { - flex-direction: row; - align-items: stretch; +body.talk-sidebar-enabled { + /* Move rules set for body by guest.scss to the wrapped body. */ + display: unset; + flex-direction: unset; + justify-content: unset; + align-items: unset; + + #body-login { + display: flex; + justify-content: center; + + background-position: 50% 50%; + background-repeat: repeat; + background-size: 275px, contain; + background-attachment: fixed; + + width: 100%; + height: 100%; + + /* Changed from guest.scss. */ + flex-direction: row; + align-items: stretch; + } } /* #body-login should be used to override the #content rules set in server. */ -- cgit v1.2.3