Skip to content

Commit 72ba708

Browse files
committed
Menu separator styling
1 parent b3459be commit 72ba708

2 files changed

Lines changed: 22 additions & 8 deletions

File tree

‎src/components/views/context_menus/RoomTagContextMenu.js‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,17 +100,20 @@ module.exports = React.createClass({
100100

101101
var favouriteClasses = classNames({
102102
'mx_RoomTagContextMenu_field': true,
103-
'mx_RoomTagContextMenu_fieldDisabled': true,
103+
'mx_RoomTagContextMenu_fieldSet': false,
104+
'mx_RoomTagContextMenu_fieldDisabled': false,
104105
});
105106

106107
var lowPriorityClasses = classNames({
107108
'mx_RoomTagContextMenu_field': true,
108-
'mx_RoomTagContextMenu_fieldSet': true,
109+
'mx_RoomTagContextMenu_fieldSet': false,
110+
'mx_RoomTagContextMenu_fieldDisabled': false,
109111
});
110112

111113
var leaveClasses = classNames({
112114
'mx_RoomTagContextMenu_field': true,
113-
'mx_RoomTagContextMenu_fieldDisabled': true,
115+
'mx_RoomTagContextMenu_fieldSet': false,
116+
'mx_RoomTagContextMenu_fieldDisabled': false,
114117
});
115118

116119
return (
@@ -123,6 +126,7 @@ module.exports = React.createClass({
123126
<img className="mx_RoomTagContextMenu_icon" src="img/icon-context-fave.svg" width="13" height="13" />
124127
Low Priority
125128
</div>
129+
<hr className="mx_RoomTagContextMenu_separator" />
126130
<div className={ leaveClasses } onClick={this._onClickLeave} >
127131
<img className="mx_RoomTagContextMenu_icon" src="img/icon-context-fave.svg" width="13" height="13" />
128132
Leave

‎src/skins/vector/css/vector-web/views/context_menus/RoomTagContextMenu.css‎

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ limitations under the License.
1616

1717
.mx_RoomTagContextMenu_field {
1818
padding-top: 4px;
19-
padding-right: 6px;
19+
padding-right: 20px;
2020
padding-bottom: 10px;
21-
padding-left: 20px;
2221
cursor: pointer;
2322
white-space: nowrap;
2423
display: flex;
@@ -27,18 +26,29 @@ limitations under the License.
2726

2827
.mx_RoomTagContextMenu_field.mx_RoomTagContextMenu_fieldSet {
2928
font-weight: bold;
30-
padding-left: 8px;
3129
}
3230

3331
.mx_RoomTagContextMenu_field.mx_RoomTagContextMenu_fieldDisabled {
3432
color: rgba(0, 0, 0, 0.2);
3533
}
3634

3735
.mx_RoomTagContextMenu_icon {
38-
padding-right: 4px;
36+
padding-right: 8px;
3937
padding-left: 4px;
4038
}
4139

42-
.mx_RoomTagContextMenu_fieldSet .mx_RoomTagContextMenu_icon {
40+
.mx_RoomTagContextMenu_separator {
41+
margin-top: 0;
42+
margin-bottom: 0;
43+
border-bottom-style: none;
44+
border-left-style: none;
45+
border-right-style: none;
46+
border-top-style: solid;
47+
border-top-width: 1px;
48+
border-color: #bbbbbb;
49+
opacity: 0.4;
50+
}
4351

52+
.mx_RoomTagContextMenu_fieldSet .mx_RoomTagContextMenu_icon {
53+
/* Something to indicate that the icon is the set tag */
4454
}

0 commit comments

Comments
 (0)