Skip to content

Commit d8d9912

Browse files
authored
Merge pull request element-hq#1823 from vector-im/wmwragg/mention-state-indicator
Wmwragg/mention state indicator
2 parents 6ae0dda + 8a28da1 commit d8d9912

2 files changed

Lines changed: 27 additions & 5 deletions

File tree

‎src/skins/vector/css/common.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ input[type=text]:focus, textarea:focus {
189189
.mx_Dialog_content {
190190
margin: 24px 58px 68px 0;
191191
font-size: 14px;
192-
color: #4a4a4a;
192+
color: #4a4a4a;
193193
word-wrap: break-word;
194194
}
195195

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

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,21 +61,43 @@ limitations under the License.
6161
.collapsed .mx_RoomTile_badge {
6262
margin-top: -15px;
6363
right: 7px;
64+
min-width: 12px;
65+
height: 16px;
66+
border-radius: 16px;
67+
padding: 0px 4px 0px 4px;
68+
z-index: 200;
69+
}
70+
71+
.mx_RoomTile_highlight .mx_RoomTile_badge:after {
72+
content: "";
73+
position: absolute;
74+
display: block;
75+
width: 0;
76+
height: 0;
77+
margin-left: 7px;
78+
border-top: 8px solid #ff0064;
79+
border-right: 10px solid transparent;
80+
}
81+
82+
/* Because the specificity of this and the above ".mx_RoomTile_highlight .mx_RoomTile_badge:after"
83+
style are the same, this style needs to be AFTER it to take effect when matched */
84+
.collapsed .mx_RoomTile_badge:after {
85+
display: none;
6486
}
6587

6688
.mx_RoomTile_badge {
67-
min-width: 12px;
68-
height: 16px;
89+
min-width: 15px;
90+
height: 18px;
6991
position: absolute;
7092
right: 16px;
7193
top: 50%;
7294
margin-top: -8px;
73-
border-radius: 16px;
95+
border-radius: 18px;
7496
color: #fff;
7597
font-weight: bold;
7698
font-size: 11px;
7799
text-align: center;
78-
padding: 0px 4px 0px 4px;
100+
padding: 2px 6px 0px 5px;
79101
}
80102

81103
.mx_RoomTile_unreadNotify .mx_RoomTile_badge {

0 commit comments

Comments
 (0)