From b5a267d84b3a71503fb407e2be39302f00a1e22d Mon Sep 17 00:00:00 2001
From: Jean-Baptiste Pasquier <contact@jbpasquier.eu>
Date: Wed, 14 Oct 2020 23:40:08 +0200
Subject: [PATCH 1/3] fix: firefox scroll

---
 src/scripts/firefox-scroll.js | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 src/scripts/firefox-scroll.js

diff --git a/src/scripts/firefox-scroll.js b/src/scripts/firefox-scroll.js
new file mode 100644
index 00000000..dd7862b0
--- /dev/null
+++ b/src/scripts/firefox-scroll.js
@@ -0,0 +1,23 @@
+document.addEventListener("DOMContentLoaded", () => {
+  window.scrollTo(0, 1);
+  let scrollTop = 1;
+  let fromTop = () => {
+    return window.pageYOffset || document.compatMode === "CSS1Compat" && document.documentElement.scrollTop || document.body.scrollTop || 0;
+  };
+
+  let isbody = setInterval(() => {
+    if (document.body) {
+      clearInterval(isbody);
+      scrollTop = fromTop();
+      window.scrollTo(0, scrollTop === 1 ? 0 : 1);
+    }
+  }, 15);
+
+  window.addEventListener("load", () => {
+    setTimeout(() => {
+      if (fromTop() < 20) {
+        window.scrollTo(0, scrollTop === 1 ? 0 : 1);
+      }
+    }, 0);
+  });
+});
\ No newline at end of file
-- 
GitLab


From 0bd9df44a9532fd74e07a7ed0eedbbca1e07c06c Mon Sep 17 00:00:00 2001
From: Jean-Baptiste Pasquier <contact@jbpasquier.eu>
Date: Thu, 15 Oct 2020 16:16:27 +0200
Subject: [PATCH 2/3] fix: firefox fix bottom bar

---
 src/scripts/firefox-scroll.js | 50 ++++++++++++++++++++++++++++-------
 1 file changed, 41 insertions(+), 9 deletions(-)

diff --git a/src/scripts/firefox-scroll.js b/src/scripts/firefox-scroll.js
index dd7862b0..5f624687 100644
--- a/src/scripts/firefox-scroll.js
+++ b/src/scripts/firefox-scroll.js
@@ -1,23 +1,55 @@
 document.addEventListener("DOMContentLoaded", () => {
-  window.scrollTo(0, 1);
-  let scrollTop = 1;
-  let fromTop = () => {
-    return window.pageYOffset || document.compatMode === "CSS1Compat" && document.documentElement.scrollTop || document.body.scrollTop || 0;
+  const resizeChat = () => {
+    let chatBox = Array.from(document.querySelectorAll("solid-xmpp-chat"))
+      .map((el) => el.shadowRoot ? el.shadowRoot.getElementById("conversejs") : false)
+      .filter((el) => el)
+      .pop();
+    if (chatBox) {
+      let chatTextArea = chatBox.querySelector(".message-form-container");
+      let ischatTextArea = setInterval(() => {
+        chatTextArea = chatBox.querySelector(".message-form-container");
+        if (chatTextArea) {
+          clearInterval(ischatTextArea);
+          if (
+            chatBox.getBoundingClientRect().height -
+            chatTextArea.getBoundingClientRect().height !=
+            chatTextArea.offsetTop
+          ) {
+            let viewportChat = Array.from(
+              document.querySelectorAll("#viewport .chat-view")
+            );
+            viewportChat.forEach(
+              (c) => (c.style.height = "calc(100vh - 106px - 57px - 4px)")
+            );
+          }
+        }
+      }, 15);
+    }
   };
+  resizeChat();
 
   let isbody = setInterval(() => {
     if (document.body) {
       clearInterval(isbody);
-      scrollTop = fromTop();
-      window.scrollTo(0, scrollTop === 1 ? 0 : 1);
+      resizeChat();
     }
   }, 15);
 
   window.addEventListener("load", () => {
     setTimeout(() => {
-      if (fromTop() < 20) {
-        window.scrollTo(0, scrollTop === 1 ? 0 : 1);
-      }
+      resizeChat();
+    }, 0);
+  });
+
+  window.addEventListener("resize", () => {
+    setTimeout(() => {
+      resizeChat();
+    }, 0);
+  });
+
+  document.addEventListener("navigate", () => {
+    setTimeout(() => {
+      resizeChat();
     }, 0);
   });
 });
\ No newline at end of file
-- 
GitLab


From e23189681139db3e8471f8aa349cabd263a86d27 Mon Sep 17 00:00:00 2001
From: Jean-Baptiste Pasquier <contact@jbpasquier.eu>
Date: Mon, 19 Oct 2020 10:59:43 +0200
Subject: [PATCH 3/3] fix: hubl#803

---
 src/styles/base/table.scss | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/styles/base/table.scss b/src/styles/base/table.scss
index 9fb19b76..c6b7e376 100644
--- a/src/styles/base/table.scss
+++ b/src/styles/base/table.scss
@@ -49,6 +49,9 @@
             text-align: center;
             vertical-align: middle;
           }
+          solid-multiple[name="user.communities"] {
+            text-align: left;
+          }
         }
       }
 
-- 
GitLab