ソースを参照

ref(chat): change chat bubble borders based on sender

For remote chat messages, all corners should be rounded
except the top left. For local messages all corners
should be rounded except the top right.
j8
Leonard Kim 6年前
コミット
fbc7f865ec
1個のファイルの変更9行の追加4行の削除
  1. 9
    4
      css/_chat.scss

+ 9
- 4
css/_chat.scss ファイルの表示

@@ -181,18 +181,23 @@
181 181
     width: 93%;
182 182
     margin-left: 9px;
183 183
     margin-right: auto;
184
-    border-radius: 5px;
185
-    border-top-left-radius: 0px;
184
+    border-radius: 0px 6px 6px 6px;
186 185
     margin-top: 3px;
187 186
     color: white;
188 187
     padding-bottom: 3px;
189 188
     position: relative;
190 189
 
191
-    &.localuser .display-name {
192
-        color: #4C9AFF
190
+    &.localuser {
191
+        border-radius: 6px 0px 6px 6px;
192
+
193
+        .display-name {
194
+            color: #4C9AFF
195
+        }
193 196
     }
194 197
 
195 198
     &.error {
199
+        border-radius: 0px;
200
+
196 201
         .timestamp,
197 202
         .display-name {
198 203
             display: none;

読み込み中…
キャンセル
保存