Skip to content

Commit 0b1b605

Browse files
committed
Merge branch 'vector' of github.com:matrix-org/matrix-react-sdk into erikj/room_editing
2 parents af190f2 + 3657029 commit 0b1b605

25 files changed

Lines changed: 432 additions & 86 deletions

‎examples/trivial/fonts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../skins/base/fonts/

‎examples/trivial/index.js‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,17 @@ function routeUrl(location) {
4040
}
4141
}
4242
window.matrixChat.showScreen('register', params);
43+
} else {
44+
window.matrixChat.showScreen(location.hash.substring(2));
4345
}
4446
}
4547

48+
function onHashChange(ev) {
49+
routeUrl(window.location);
50+
}
51+
52+
window.addEventListener('hashchange', onHashChange);
53+
4654
var loaded = false;
4755

4856
window.onload = function() {

‎skins/base/css/molecules/MemberInfo.css‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ limitations under the License.
5555

5656
.mx_MemberInfo_field {
5757
padding: 6px;
58+
overflow: hidden;
59+
text-overflow: ellipsis;
5860
}
5961

6062
.mx_MemberInfo_button {

‎skins/base/css/molecules/MemberTile.css‎

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ limitations under the License.
1717
.mx_MemberTile {
1818
cursor: pointer;
1919
display: table-row;
20+
height: 49px;
2021
}
2122

2223
.mx_MemberTile_avatar {
@@ -36,6 +37,24 @@ limitations under the License.
3637
background-color: #dbdbdb;
3738
}
3839

40+
.mx_MemberTile_inviteEditing .mx_MemberTile_avatar {
41+
display: none;
42+
}
43+
44+
.mx_MemberTile_inviteEditing .mx_MemberTile_name {
45+
position: absolute;
46+
width: 200px;
47+
}
48+
49+
.mx_MemberTile_inviteEditing .mx_MemberTile_name input {
50+
border-radius: 3px;
51+
border: 1px solid #c7c7c7;
52+
font-weight: 300;
53+
font-size: 14px;
54+
padding: 9px;
55+
margin-top: 6px;
56+
}
57+
3958
.mx_MemberTile_power {
4059
z-index: 10;
4160
position: absolute;
@@ -52,10 +71,14 @@ limitations under the License.
5271
text-overflow: ellipsis;
5372
}
5473

55-
.mx_MemberTile_unavailable {
74+
.mx_MemberTile_unavailable .mx_MemberTile_avatar,
75+
.mx_MemberTile_unavailable .mx_MemberTile_name
76+
{
5677
opacity: 0.75;
5778
}
5879

59-
.mx_MemberTile_offline {
80+
.mx_MemberTile_offline .mx_MemberTile_avatar,
81+
.mx_MemberTile_offline .mx_MemberTile_name
82+
{
6083
opacity: 0.5;
6184
}

‎skins/base/css/molecules/RoomHeader.css‎

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,39 @@ limitations under the License.
4343
width: 100%;
4444
}
4545

46-
.mx_RoomHeader_rightRow {
46+
.mx_RoomHeader_hangupButton {
4747
height: 48px;
4848
margin-top: 18px;
49-
background-color: #fff;
49+
background-color: #80cef4;
5050
border-radius: 48px;
51-
border: 1px solid #a9dbf4;
51+
margin-right: 8px;
52+
color: #fff;
53+
line-height: 48px;
54+
text-align: center;
5255

5356
-webkit-box-ordinal-group: 2;
5457
-moz-box-ordinal-group: 2;
5558
-ms-flex-order: 2;
5659
-webkit-order: 2;
5760
order: 2;
5861

62+
-webkit-flex: 0 0 90px;
63+
flex: 0 0 90px;
64+
}
65+
66+
.mx_RoomHeader_rightRow {
67+
height: 48px;
68+
margin-top: 18px;
69+
background-color: #fff;
70+
border-radius: 48px;
71+
border: 1px solid #a9dbf4;
72+
73+
-webkit-box-ordinal-group: 3;
74+
-moz-box-ordinal-group: 3;
75+
-ms-flex-order: 3;
76+
-webkit-order: 3;
77+
order: 3;
78+
5979
-webkit-flex: 0 0 200px;
6080
flex: 0 0 200px;
6181
}
@@ -66,6 +86,15 @@ limitations under the License.
6686
vertical-align: middle;
6787
}
6888

89+
.mx_RoomHeader_simpleHeader {
90+
line-height: 88px;
91+
color: #80cef4;
92+
font-weight: 400;
93+
font-size: 20px;
94+
overflow: scroll;
95+
text-overflow: ellipsis;
96+
}
97+
6998
.mx_RoomHeader_name {
7099
vertical-align: middle;
71100
height: 28px;

‎skins/base/css/organisms/LeftPanel.css‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ limitations under the License.
4343
overflow-y: scroll;
4444
}
4545

46-
.mx_LeftPanel .mx_DirectoryMenu {
46+
.mx_LeftPanel .mx_BottomLeftMenu {
4747
-webkit-box-ordinal-group: 3;
4848
-moz-box-ordinal-group: 3;
4949
-ms-flex-order: 3;
@@ -56,15 +56,15 @@ limitations under the License.
5656
border-top: 1px solid #f3f8fa;
5757
}
5858

59-
.mx_LeftPanel .mx_DirectoryMenu .mx_RoomTile {
59+
.mx_LeftPanel .mx_BottomLeftMenu .mx_RoomTile {
6060
color: #378bb4;
6161
}
6262

63-
.mx_LeftPanel .mx_DirectoryMenu .mx_RoomTile_avatar {
63+
.mx_LeftPanel .mx_BottomLeftMenu .mx_RoomTile_avatar {
6464
padding-left: 14px;
6565
}
6666

67-
.mx_LeftPanel .mx_DirectoryMenu .mx_DirectoryMenu_options {
67+
.mx_LeftPanel .mx_BottomLeftMenu .mx_BottomLeftMenu_options {
6868
margin-top: 12px;
6969
width: 100%;
7070
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*
2+
Copyright 2015 OpenMarket Ltd
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
.mx_RoomDirectory {
18+
max-width: 720px;
19+
margin: auto;
20+
}
21+
22+
.mx_RoomDirectory_input {
23+
margin: auto;
24+
border-radius: 3px;
25+
border: 1px solid #c7c7c7;
26+
font-weight: 300;
27+
font-size: 14px;
28+
padding: 9px;
29+
margin-top: 12px;
30+
margin-bottom: 12px;
31+
}
32+
33+
.mx_RoomDirectory_table {
34+
width: 100%;
35+
}
36+
37+
.mx_RoomDirectory_table td,
38+
.mx_RoomDirectory_table th, {
39+
padding: 6px;
40+
}

‎skins/base/css/organisms/RoomView.css‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,20 @@ limitations under the License.
105105
border-top: 1px solid #a8dbf3;
106106
}
107107

108+
.mx_RoomView_typingBar {
109+
margin-top: 17px;
110+
margin-left: 56px;
111+
color: #818794;
112+
}
113+
114+
.mx_RoomView_typingBar img {
115+
padding-left: 12px;
116+
padding-right: 12px;
117+
margin-left: -64px;
118+
margin-top: -7px;
119+
float: left;
120+
}
121+
108122
.mx_RoomView .mx_MessageComposer {
109123
-webkit-box-ordinal-group: 5;
110124
-moz-box-ordinal-group: 5;

‎skins/base/img/typing.png‎

236 Bytes
Loading

‎skins/base/views/atoms/EditableText.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ module.exports = React.createClass({
3333
},
3434

3535
onClickDiv: function() {
36+
console.log("onClickDiv triggered");
3637
this.setState({
3738
phase: this.Phases.Edit,
3839
})
@@ -57,12 +58,12 @@ module.exports = React.createClass({
5758
if (this.state.value) {
5859
editable_el = <div ref="display_div" onClick={this.onClickDiv}>{this.state.value}</div>;
5960
} else {
60-
editable_el = <div ref="display_div" onClick={this.onClickDiv}><i>{this.props.placeHolder}</i></div>;
61+
editable_el = <div ref="display_div" onClick={this.onClickDiv}>{this.props.label}</div>;
6162
}
6263
} else if (this.state.phase == this.Phases.Edit) {
6364
editable_el = (
6465
<div>
65-
<input type="text" defaultValue={this.state.value} onKeyUp={this.onKeyUp} onFocus={this.onFocus} onBlur={this.onFinish} autoFocus/>
66+
<input type="text" defaultValue={this.state.value} onKeyUp={this.onKeyUp} onFocus={this.onFocus} onBlur={this.onFinish} placeholder={this.props.placeHolder} autoFocus/>
6667
</div>
6768
);
6869
}

0 commit comments

Comments
 (0)