Skip to content

Commit 6c19504

Browse files
committed
Merge branch 'wmwragg/mention-state-indicator-round-3' into wmwragg/mention-state-menu
# resolved Conflicts: # src/skins/vector/css/vector-web/views/rooms/RoomTooltip.css
2 parents 2768cd2 + 72b4a86 commit 6c19504

3 files changed

Lines changed: 36 additions & 27 deletions

File tree

‎src/skins/vector/css/matrix-react-sdk/views/rooms/RoomTile.css‎

Lines changed: 34 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,38 @@ limitations under the License.
2727
padding-top: 6px;
2828
padding-bottom: 6px;
2929
padding-left: 18px;
30+
padding-right: 6px;
3031
width: 24px;
3132
height: 24px;
3233
vertical-align: middle;
3334
}
3435

3536
.mx_RoomTile_name {
3637
display: inline-block;
38+
position: relative;
3739
width: 100px;
3840
vertical-align: middle;
3941
overflow: hidden;
40-
word-break: break-word;
41-
padding-left: 11px;
42+
/* word-break: break-word; */
43+
white-space: nowrap;
44+
padding-left: 5px;
4245
padding-right: 15px;
46+
padding-top: 2px;
47+
padding-bottom: 2px;
4348
color: rgba(69, 69, 69, 0.8);
4449
}
4550

51+
.mx_RoomTile_name:before {
52+
content:'';
53+
width:100px;
54+
height:22px;
55+
top: 0px;
56+
left: 0px;
57+
position:absolute;
58+
padding-left: 20px;
59+
background:linear-gradient(to right, rgba(234,245,240,0) 80%, #eaf5f0 99%);
60+
}
61+
4662
.mx_RoomTile_ellipsis .mx_RoomTile_name {
4763
font-style: italic;
4864
color: #454545;
@@ -53,14 +69,14 @@ limitations under the License.
5369
*/
5470
}
5571

56-
.collapsed .mx_RoomTile_name {
57-
display: none;
58-
}
59-
6072
.collapsed .mx_RoomTile {
6173
height: 36px;
6274
}
6375

76+
.collapsed .mx_RoomTile_name {
77+
display: none;
78+
}
79+
6480
.collapsed .mx_RoomTile_badge {
6581
top: -40px;
6682
left: 30px;
@@ -71,6 +87,11 @@ limitations under the License.
7187
z-index: 200;
7288
}
7389

90+
/* Hide the bottom of speech bubble */
91+
.collapsed .mx_RoomTile_highlight .mx_RoomTile_badge:after {
92+
display: none;
93+
}
94+
7495
/* This is the bottom of the speech bubble */
7596
.mx_RoomTile_highlight .mx_RoomTile_badge:after {
7697
content: "";
@@ -83,30 +104,24 @@ limitations under the License.
83104
border-right: 10px solid transparent;
84105
}
85106

86-
/* Because the specificity of this and the above ".mx_RoomTile_highlight .mx_RoomTile_badge:after"
87-
style are the same, this style needs to be AFTER it to take effect when matched */
88-
.collapsed .mx_RoomTile_badge:after {
89-
display: none;
90-
}
91-
92107
.mx_RoomTile_badge {
93108
display: inline-block;
94109
min-width: 14px;
95-
height: 18px;
110+
height: 17px;
96111
position: relative;
97112
left: 8px;
98113
top: 2px;
99-
border-radius: 18px;
114+
border-radius: 14px;
100115
color: #fff;
101-
font-weight: bold;
116+
font-weight: 600;
102117
font-size: 11px;
103118
text-align: center;
104-
padding-top: 2px;
119+
padding-top: 1px;
105120
padding-left: 4px;
106121
padding-right: 4px;
107122
}
108123

109-
.mx_RoomTile_badge:hover {
124+
.mx_RoomTile .mx_RoomTile_badge.mx_RoomTile_badgeButton {
110125
letter-spacing: 0.1em;
111126
opacity: 1;
112127
}
@@ -119,7 +134,7 @@ style are the same, this style needs to be AFTER it to take effect when matched
119134
background-color: #ff0064;
120135
}
121136

122-
.mx_RoomTile_badge_no_unread {
137+
.mx_RoomTile_read .mx_RoomTile_badge {
123138
background-color: rgb(214, 214, 214);
124139
opacity: 0;
125140
}
@@ -128,14 +143,7 @@ style are the same, this style needs to be AFTER it to take effect when matched
128143
font-weight: bold;
129144
}
130145

131-
.mx_RoomTile_selected .mx_RoomTile_name span {
132-
display: inline-block;
133-
position: relative;
134-
width: 100%;
135-
padding: 4px;
136-
margin-top: -4px;
137-
margin-bottom: -4px;
138-
border-radius: 2px;
146+
.mx_RoomTile_selected .mx_RoomTile_name {
139147
background-color: rgba(118,207,166,0.2);
140148
}
141149

‎src/skins/vector/css/vector-web/structures/LeftPanel.css‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ limitations under the License.
6363
margin-right: 18px;
6464
-webkit-flex: 0 0 60px;
6565
flex: 0 0 60px;
66+
z-index: 1;
6667
}
6768

6869
.mx_LeftPanel .mx_BottomLeftMenu_options {

‎src/skins/vector/css/vector-web/views/rooms/RoomTooltip.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ limitations under the License.
2727
border-radius: 8px;
2828
background-color: #fff;
2929
z-index: 2000;
30-
left: 64px;
30+
left: 52px;
3131
padding: 6px;
3232
}

0 commit comments

Comments
 (0)