Skip to content

Commit 1fcb4ba

Browse files
committed
droptarget and usersettings and roomsettings layout tweaks
1 parent 41ae851 commit 1fcb4ba

5 files changed

Lines changed: 68 additions & 33 deletions

File tree

‎src/components/structures/BottomLeftMenu.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module.exports = React.createClass({
5050
return (
5151
<div className="mx_BottomLeftMenu">
5252
<div className="mx_BottomLeftMenu_options">
53-
<BottomLeftMenuTile collapsed={ this.props.collapsed } img="img/create-big.svg" label="Create new room" onClick={ this.onCreateRoomClick }/>
53+
<BottomLeftMenuTile collapsed={ this.props.collapsed } img="img/create-big.svg" label="Start chat" onClick={ this.onCreateRoomClick }/>
5454
<BottomLeftMenuTile collapsed={ this.props.collapsed } img="img/directory-big.svg" label="Directory" onClick={ this.onRoomDirectoryClick }/>
5555
<BottomLeftMenuTile collapsed={ this.props.collapsed } img="img/settings-big.svg" label="Settings" onClick={ this.onSettingsClick }/>
5656
</div>

‎src/skins/vector/css/matrix-react-sdk/structures/RoomView.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ limitations under the License.
4444
min-width: 0px;
4545
max-width: 960px;
4646
width: 100%;
47-
font-size: 20px;
47+
font-size: 18px;
4848
text-align: center;
4949

5050
pointer-events: none;

‎src/skins/vector/css/matrix-react-sdk/structures/UserSettings.css‎

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,38 @@ limitations under the License.
1818
width: 960px;
1919
margin-left: auto;
2020
margin-right: auto;
21-
overflow-y: auto;
21+
22+
display: -webkit-box;
23+
display: -moz-box;
24+
display: -ms-flexbox;
25+
display: -webkit-flex;
26+
display: flex;
27+
flex-direction: column;
28+
-webkit-flex-direction: column;
29+
}
30+
31+
.mx_UserSettings .mx_RoomHeader {
32+
-webkit-box-ordinal-group: 1;
33+
-moz-box-ordinal-group: 1;
34+
-ms-flex-order: 1;
35+
-webkit-order: 1;
36+
order: 1;
37+
38+
-webkit-flex: 0 0 83px;
39+
flex: 0 0 83px;
40+
}
41+
42+
.mx_UserSettings_body {
43+
-webkit-box-ordinal-group: 2;
44+
-moz-box-ordinal-group: 2;
45+
-ms-flex-order: 2;
46+
-webkit-order: 2;
47+
order: 2;
48+
49+
-webkit-flex: 1 1 0;
50+
flex: 1 1 0;
51+
52+
overflow-y: auto;
2253
}
2354

2455
.mx_UserSettings_spinner {
@@ -96,6 +127,7 @@ limitations under the License.
96127
.mx_UserSettings_profileInputCell input,
97128
.mx_UserSettings_profileInputCell .mx_EditableText
98129
{
130+
display: inline-block;
99131
border: 0px;
100132
border-bottom: 1px solid rgba(151, 151, 151, 0.5);
101133
padding: 0px;
@@ -105,6 +137,10 @@ limitations under the License.
105137
font-size: 16px;
106138
}
107139

140+
.mx_UserSettings_profileInputCell .mx_EditableText_placeholder {
141+
color: rgba(74, 74, 74, 0.5);
142+
}
143+
108144
.mx_UserSettings_notifInputCell {
109145
display: table-cell;
110146
padding-bottom: 21px;

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

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
.mx_RoomHeader {
17+
/* add 12px to the height of the header when editing */
18+
.mx_RoomHeader_editing {
19+
-webit-flex: 0 0 95px ! important;
20+
flex: 0 0 95px ! important;
1821
}
1922

2023
.mx_RoomHeader_wrapper {
@@ -33,6 +36,10 @@ limitations under the License.
3336
display: flex;
3437
}
3538

39+
.mx_RoomHeader_editing .mx_RoomHeader_wrapper {
40+
border-bottom: 1px solid transparent;
41+
}
42+
3643
.mx_RoomHeader_leftRow {
3744
margin-left: -2px;
3845

@@ -98,7 +105,7 @@ limitations under the License.
98105

99106
.mx_RoomHeader_info {
100107
display: table-cell;
101-
/* height: 48px; */
108+
width: 100%;
102109
vertical-align: middle;
103110
}
104111

@@ -122,6 +129,7 @@ limitations under the License.
122129

123130
.mx_RoomHeader_name {
124131
vertical-align: middle;
132+
width: 100%;
125133
height: 31px;
126134
overflow: hidden;
127135
color: #454545;
@@ -131,6 +139,7 @@ limitations under the License.
131139
padding-right: 16px;
132140
/* why isn't text-overflow working? */
133141
text-overflow: ellipsis;
142+
border-bottom: 1px solid transparent;
134143
}
135144

136145
.mx_RoomHeader_nametext {
@@ -155,15 +164,16 @@ limitations under the License.
155164
pointer-events: none;
156165
}
157166

158-
.mx_RoomHeader_leftRow:hover {
167+
.mx_RoomHeader_name,
168+
.mx_RoomHeader_avatar {
159169
cursor: pointer;
160170
}
161171

162-
.mx_RoomHeader_leftRow:hover .mx_RoomHeader_name div:not(.mx_RoomHeader_editable) {
172+
.mx_RoomHeader_name:hover div:not(.mx_RoomHeader_editable) {
163173
color: #76cfa6;
164174
}
165175

166-
.mx_RoomHeader_leftRow:hover .mx_RoomHeader_settingsButton {
176+
.mx_RoomHeader_name:hover .mx_RoomHeader_settingsButton {
167177
visibility: visible;
168178
}
169179

@@ -181,38 +191,17 @@ limitations under the License.
181191
}
182192

183193
.mx_RoomHeader_editable {
184-
border-bottom: 1px solid #c7c7c7;
194+
border-bottom: 1px solid #c7c7c7 ! important;
185195
min-width: 70px;
186196
cursor: text;
187197
}
188198

189199
.mx_RoomHeader_editable:focus {
190-
border-bottom: 1px solid #76CFA6;
200+
border-bottom: 1px solid #76CFA6 ! important;
191201
outline: none;
192202
box-shadow: none;
193203
}
194204

195-
/*
196-
.mx_RoomHeader_nameEditing {
197-
padding-left: 8px;
198-
padding-right: 16px;
199-
margin-top: -5px;
200-
}
201-
202-
.mx_RoomHeader_name input, .mx_RoomHeader_nameInput {
203-
border-radius: 3px;
204-
width: 260px;
205-
border: 1px solid #c7c7c7;
206-
font-weight: 300;
207-
font-size: 13px;
208-
padding: 9px;
209-
}
210-
211-
.mx_RoomHeader_nameInput {
212-
margin-top: 6px;
213-
}
214-
*/
215-
216205
.mx_RoomHeader_topic {
217206
vertical-align: bottom;
218207
float: left;
@@ -223,6 +212,7 @@ limitations under the License.
223212
margin-right: 16px;
224213
overflow: hidden;
225214
text-overflow: ellipsis;
215+
border-bottom: 1px solid transparent;
226216
}
227217

228218
.mx_RoomHeader_avatar {
@@ -232,10 +222,20 @@ limitations under the License.
232222
vertical-align: middle;
233223
}
234224

235-
.mx_RoomHeader_avatar img {
225+
.mx_RoomHeader_avatar .mx_RoomAvatar {
236226
border-radius: 24px;
237227
}
238228

229+
.mx_RoomHeader_avatarPicker_edit {
230+
position: absolute;
231+
margin-left: 16px;
232+
margin-top: 4px;
233+
}
234+
235+
.mx_RoomHeader_avatarPicker_edit > input {
236+
display: none;
237+
}
238+
239239
.mx_RoomHeader_button {
240240
display: table-cell;
241241
vertical-align: top;

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ limitations under the License.
1515
*/
1616

1717
.mx_RoomSettings {
18-
padding-top: 12px;
1918
}
2019

2120
.mx_RoomSettings_settings {

0 commit comments

Comments
 (0)