Browse Source

css: fix rounded corners for chats in overlayed mode

JC Brand 5 years ago
parent
commit
b8be707dc5
1 changed files with 16 additions and 10 deletions
  1. 16 10
      sass/_chatbox.scss

+ 16 - 10
sass/_chatbox.scss

@@ -484,16 +484,8 @@
         padding: 0.5em;
         padding: 0.5em;
     }
     }
     .chat-head {
     .chat-head {
-        border-top-left-radius: var(--chatbox-border-radius);
-        border-top-right-radius: var(--chatbox-border-radius);
-        @media screen and (max-height: $mobile-landscape-height) {
-            border-top-left-radius: 0;
-            border-top-right-radius: 0;
-        }
-        @media screen and (max-width: $mobile-portrait-length) {
-            border-top-left-radius: 0;
-            border-top-right-radius: 0;
-        }
+        border-top-left-radius: 0;
+        border-top-right-radius: 0;
     }
     }
     .chatbox {
     .chatbox {
         min-width: var(--overlayed-chat-width) !important;
         min-width: var(--overlayed-chat-width) !important;
@@ -507,6 +499,20 @@
 }
 }
 
 
 #conversejs.converse-overlayed  {
 #conversejs.converse-overlayed  {
+
+    .chat-head, .box-flyout {
+        border-top-left-radius: var(--chatbox-border-radius);
+        border-top-right-radius: var(--chatbox-border-radius);
+        @media screen and (max-height: $mobile-landscape-height) {
+            border-top-left-radius: 0;
+            border-top-right-radius: 0;
+        }
+        @media screen and (max-width: $mobile-portrait-length) {
+            border-top-left-radius: 0;
+            border-top-right-radius: 0;
+        }
+    }
+
     .flyout {
     .flyout {
         bottom: var(--overlayed-chatbox-hover-height);
         bottom: var(--overlayed-chatbox-hover-height);
     }
     }