Skip to content

Commit 2cefa58

Browse files
author
Luke Barnard
committed
CSS for Modifying GroupView UI matrix-org/matrix-react-sdk#1475
1 parent bbcf46b commit 2cefa58

3 files changed

Lines changed: 52 additions & 6 deletions

File tree

‎src/components/structures/RightPanel.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ module.exports = React.createClass({
330330
<div className="mx_RightPanel_icon" >
331331
<TintableSvg src="img/icons-room-add.svg" width="35" height="35" />
332332
</div>
333-
<div className="mx_RightPanel_message">{ _t('Add room to this group') }</div>
333+
<div className="mx_RightPanel_message">{ _t('Add rooms to this group') }</div>
334334
</AccessibleButton>
335335
);
336336
}

‎src/skins/vector/css/_components.scss‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
@import "./matrix-react-sdk/views/rooms/_MemberList.scss";
5757
@import "./matrix-react-sdk/views/rooms/_MessageComposer.scss";
5858
@import "./matrix-react-sdk/views/rooms/_PresenceLabel.scss";
59+
@import "./matrix-react-sdk/views/rooms/_RoomDetailList.scss";
5960
@import "./matrix-react-sdk/views/rooms/_RoomHeader.scss";
6061
@import "./matrix-react-sdk/views/rooms/_RoomList.scss";
6162
@import "./matrix-react-sdk/views/rooms/_RoomPreviewBar.scss";

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

Lines changed: 50 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ limitations under the License.
1919
width: 100%;
2020
margin-left: auto;
2121
margin-right: auto;
22+
display: flex;
23+
flex-direction: column;
24+
overflow: hidden;
2225
}
2326

2427
.mx_GroupView_error {
@@ -27,15 +30,13 @@ limitations under the License.
2730

2831
.mx_GroupView_header {
2932
max-width: 960px;
30-
margin: auto;
3133
height: 70px;
3234
align-items: center;
3335
display: flex;
34-
margin-bottom: 20px;
3536
}
3637

3738
.mx_GroupView_header_view {
38-
border-bottom: 1px solid #e5e5e5;
39+
border-bottom: 1px solid $primary-hairline-color;
3940
}
4041

4142
.mx_GroupView_header_avatar, .mx_GroupView_header_info {
@@ -133,9 +134,53 @@ limitations under the License.
133134
top: 5px;
134135
}
135136

137+
.mx_GroupView_body {
138+
display: flex;
139+
flex-direction: column;
140+
flex-grow: 1;
141+
}
142+
143+
.mx_GroupView_rooms {
144+
flex-grow: 1;
145+
display: flex;
146+
flex-direction: column;
147+
min-height: 200px;
148+
user-select: none;
149+
}
150+
151+
.mx_GroupView_rooms_header h3 {
152+
margin-bottom: 10px
153+
}
154+
155+
.mx_GroupView_rooms_header .mx_AccessibleButton {
156+
padding-left: 14px;
157+
margin-bottom: 14px;
158+
height: 24px;
159+
}
160+
161+
.mx_GroupView_rooms_header_addButton {
162+
display: inline-block;
163+
}
164+
165+
.mx_GroupView_rooms_header_addButton_label {
166+
display: inline-block;
167+
vertical-align: top;
168+
line-height: 24px;
169+
padding-left: 28px;
170+
color: $accent-color;
171+
}
172+
173+
.mx_GroupView_rooms .mx_RoomDetailList {
174+
flex-grow: 1;
175+
border-top: 1px solid $primary-hairline-color;
176+
padding-top: 10px;
177+
}
178+
179+
.mx_GroupView .mx_RoomView_messageListWrapper {
180+
justify-content: flex-start;
181+
}
182+
136183
.mx_GroupView_membershipSection {
137-
margin-left: auto;
138-
margin-right: auto;
139184
margin-bottom: 11px;
140185
color: $greyed-fg-color;
141186
}

0 commit comments

Comments
 (0)