Преглед на файлове

fix(contact-list): update avatar sizing

With interfaceConfig.SHOW_CONTACTLIST_AVATARS, the avatars in the
contact list are too big and will overlap each other. Constrain
the avatar sizes and make each contact a little taller to better
space each out.
master
Leonard Kim преди 7 години
родител
ревизия
4938d1b6de
променени са 1 файла, в които са добавени 15 реда и са изтрити 11 реда
  1. 15
    11
      css/_contact_list.scss

+ 15
- 11
css/_contact_list.scss Целия файл

@@ -23,14 +23,16 @@
23 23
 #contacts {
24 24
 
25 25
     >li {
26
-        display: block;
26
+        align-items: center;
27
+        border-radius: 3px;
28
+        color: $baseLight;
29
+        display: flex;
30
+        font-size: 14px;
31
+        height: 36px;
27 32
         list-style-type: none;
33
+        padding: 0 10%;
28 34
         text-align: left;
29 35
         white-space: nowrap;
30
-        color: $baseLight;
31
-        font-size: 16px;
32
-        padding: 0 10%;
33
-        height: 27px;
34 36
 
35 37
         &:hover,
36 38
         &:active {
@@ -38,13 +40,15 @@
38 40
         }
39 41
 
40 42
         > p {
41
-            display: inline-block;
42
-            vertical-align: middle;
43
-            margin: 0px;
44
-            width: 100%;
45
-            line-height: 1.5em;
46
-            text-overflow: ellipsis;
47 43
             overflow: hidden;
44
+            text-overflow: ellipsis;
45
+        }
46
+
47
+        .avatar {
48
+            cursor: pointer;
49
+            height: 24px;
50
+            margin: 0 8px 0 4px;
51
+            width: 24px;
48 52
         }
49 53
     }
50 54
 }

Loading…
Отказ
Запис