Skip to content

Commit 72b4a86

Browse files
committed
Tweaked the tooltip to be better aligned. Also added the fading of the room name if too long
1 parent ce53111 commit 72b4a86

3 files changed

Lines changed: 16 additions & 2 deletions

File tree

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

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,30 @@ limitations under the License.
3535

3636
.mx_RoomTile_name {
3737
display: inline-block;
38+
position: relative;
3839
width: 100px;
3940
vertical-align: middle;
4041
overflow: hidden;
41-
word-break: break-word;
42+
/* word-break: break-word; */
43+
white-space: nowrap;
4244
padding-left: 5px;
4345
padding-right: 15px;
4446
padding-top: 2px;
4547
padding-bottom: 2px;
4648
color: rgba(69, 69, 69, 0.8);
4749
}
4850

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+
4962
.mx_RoomTile_ellipsis .mx_RoomTile_name {
5063
font-style: italic;
5164
color: #454545;

‎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)