Skip to content

Commit 93c2462

Browse files
authored
Merge pull request element-hq#6160 from vector-im/luke/fix-room-list-drop-target-bg
Fix RoomDropTarget and emptySubListTip to have containers
2 parents 15b7af9 + 9e1e7e0 commit 93c2462

File tree

3 files changed

+26
-15
lines changed

3 files changed

+26
-15
lines changed

src/components/views/rooms/RoomDropTarget.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ module.exports = React.createClass({
2323

2424
render: function() {
2525
return (
26-
<div className="mx_RoomDropTarget">
27-
<div className="mx_RoomDropTarget_label">
28-
{ this.props.label }
26+
<div className="mx_RoomDropTarget_container">
27+
<div className="mx_RoomDropTarget">
28+
<div className="mx_RoomDropTarget_label">
29+
{ this.props.label }
30+
</div>
2931
</div>
3032
</div>
3133
);

src/skins/vector/css/matrix-react-sdk/views/rooms/_RoomList.scss

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,16 @@ limitations under the License.
3939
z-index: 6;
4040
}
4141

42+
.mx_RoomList_emptySubListTip_container {
43+
background-color: $secondary-accent-color;
44+
padding-left: 18px;
45+
padding-right: 18px;
46+
padding-top: 8px;
47+
padding-bottom: 7px;
48+
}
49+
4250
.mx_RoomList_emptySubListTip {
4351
font-size: 13px;
44-
margin-left: 18px;
45-
margin-right: 18px;
46-
margin-top: 8px;
47-
margin-bottom: 7px;
4852
padding: 5px;
4953
border: 1px dashed $accent-color;
5054
color: $primary-fg-color;

src/skins/vector/css/vector-web/views/rooms/_RoomDropTarget.scss

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

17+
.mx_RoomDropTarget_container {
18+
background-color: $secondary-accent-color;
19+
padding-left: 18px;
20+
padding-right: 18px;
21+
padding-top: 8px;
22+
padding-bottom: 7px;
23+
}
24+
25+
.collapsed .mx_RoomDropTarget_container {
26+
padding-right: 10px;
27+
padding-left: 10px;
28+
}
29+
1730
.mx_RoomDropTarget {
1831
font-size: 13px;
19-
margin-left: 18px;
20-
margin-right: 18px;
21-
margin-top: 8px;
22-
margin-bottom: 7px;
2332
padding-top: 5px;
2433
padding-bottom: 5px;
2534
border: 1px dashed $accent-color;
@@ -28,10 +37,6 @@ limitations under the License.
2837
border-radius: 4px;
2938
}
3039

31-
.collapsed .mx_RoomDropTarget {
32-
margin-right: 10px;
33-
margin-left: 10px;
34-
}
3540

3641
.mx_RoomDropTarget_label {
3742
position: relative;

0 commit comments

Comments
 (0)