Skip to content

Commit 47ed897

Browse files
committed
implement collapsible leftpanel at last
1 parent a05437e commit 47ed897

16 files changed

Lines changed: 107 additions & 17 deletions

File tree

‎src/controllers/organisms/RoomList.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ module.exports = {
159159
<RoomTile
160160
room={room}
161161
key={room.roomId}
162+
collapsed={self.props.collapsed}
162163
selected={selected}
163164
unread={self.state.activityMap[room.roomId] === 1}
164165
highlight={self.state.activityMap[room.roomId] === 2}

‎src/skins/vector/css/hide.css‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.mx_RoomDropTarget,
22
.mx_RoomList_favourites_label,
33
.mx_RoomList_archive_label,
4-
.mx_LeftPanel_hideButton,
54
.mx_RoomHeader_search,
65
.mx_RoomSettings_encrypt,
76
.mx_CreateRoom_encrypt,

‎src/skins/vector/css/molecules/RoomTile.css‎

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ limitations under the License.
2222

2323
.mx_RoomTile_avatar {
2424
display: table-cell;
25-
padding-right: 12px;
25+
padding-right: 10px;
2626
padding-top: 3px;
2727
padding-bottom: 3px;
28-
padding-left: 16px;
28+
padding-left: 10px;
2929
vertical-align: middle;
30-
width: 40px;
31-
height: 40px;
30+
width: 36px;
31+
height: 36px;
3232
position: relative;
3333
}
3434

@@ -45,6 +45,31 @@ limitations under the License.
4545
padding-right: 16px;
4646
}
4747

48+
.mx_RoomTile_tooltip {
49+
border: 1px solid #a9dbf4;
50+
border-radius: 8px;
51+
background-color: #fff;
52+
position: absolute;
53+
z-index: 1000;
54+
margin-top: 6px;
55+
left: 64px;
56+
padding: 6px;
57+
}
58+
59+
.mx_RoomTile_chevron {
60+
position: absolute;
61+
left: -9px;
62+
top: 8px;
63+
}
64+
65+
.mx_RoomTile_tooltip {
66+
position: absolute;
67+
}
68+
69+
.collapsed .mx_RoomTile_name {
70+
display: none;
71+
}
72+
4873
/*
4974
.mx_RoomTile_nameBadge {
5075
display: table;

‎src/skins/vector/css/organisms/LeftPanel.css‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,16 @@ limitations under the License.
2828

2929
.mx_LeftPanel_hideButton {
3030
position: absolute;
31-
top: 10px;
32-
right: 10px;
31+
top: 18px;
32+
right: 8px;
33+
cursor: pointer;
34+
}
35+
36+
.mx_LeftPanel_showButton {
37+
position: absolute;
38+
top: 18px;
39+
left: 16px;
40+
cursor: pointer;
3341
}
3442

3543
.mx_LeftPanel .mx_RoomList {

‎src/skins/vector/css/organisms/RoomList.css‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ limitations under the License.
2727
.mx_RoomList h2 {
2828
padding-left: 16px;
2929
padding-right: 16px;
30+
padding-bottom: 10px;
3031
}

‎src/skins/vector/css/pages/MatrixChat.css‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ limitations under the License.
7373
flex: 0 0 230px;
7474
}
7575

76+
.mx_MatrixChat .mx_LeftPanel.collapsed {
77+
-webkit-flex: 0 0 60px;
78+
flex: 0 0 60px;
79+
}
80+
7681
.mx_MatrixChat .mx_MatrixChat_middlePanel {
7782
-webkit-box-ordinal-group: 2;
7883
-moz-box-ordinal-group: 2;
14.1 KB
Loading
14.1 KB
Loading

‎src/skins/vector/img/hide.png‎

820 Bytes
Loading

‎src/skins/vector/img/menu.png‎

100644100755
-78 Bytes
Loading

0 commit comments

Comments
 (0)