Explorar o código

css: fix rounded corners for chats in overlayed mode

JC Brand %!s(int64=5) %!d(string=hai) anos
pai
achega
b8be707dc5
Modificáronse 1 ficheiros con 16 adicións e 10 borrados
  1. 16 10
      sass/_chatbox.scss

+ 16 - 10
sass/_chatbox.scss

@@ -484,16 +484,8 @@
         padding: 0.5em;
     }
     .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 {
         min-width: var(--overlayed-chat-width) !important;
@@ -507,6 +499,20 @@
 }
 
 #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 {
         bottom: var(--overlayed-chatbox-hover-height);
     }