Skip to content

Commit b84f258

Browse files
committed
add bottom margin to navigation buttons of room state explorer
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent 68fc202 commit b84f258

3 files changed

Lines changed: 27 additions & 2 deletions

File tree

‎src/components/views/dialogs/DevtoolsDialog.js‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,14 +188,19 @@ class RoomStateExplorer extends React.Component {
188188
onClickFn = this.onViewSourceClick(stateGroup[stateKeys[0]]);
189189
}
190190

191-
rows.push(<button key={evType} onClick={onClickFn}>{ evType }</button>);
191+
rows.push(<button className="mx_DevTools_RoomStateExplorer_button" key={evType} onClick={onClickFn}>
192+
{ evType }
193+
</button>);
192194
});
193195
} else {
194196
const evType = this.state.eventType;
195197
const stateGroup = this.roomStateEvents[evType];
196198
Object.keys(stateGroup).forEach((stateKey) => {
197199
const ev = stateGroup[stateKey];
198-
rows.push(<button key={stateKey} onClick={this.onViewSourceClick(ev)}>{stateKey}</button>);
200+
rows.push(<button className="mx_DevTools_RoomStateExplorer_button" key={stateKey}
201+
onClick={this.onViewSourceClick(ev)}>
202+
{ stateKey }
203+
</button>);
199204
});
200205
}
201206

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
@import "./vector-web/views/context_menus/_MessageContextMenu.scss";
7575
@import "./vector-web/views/context_menus/_RoomTileContextMenu.scss";
7676
@import "./vector-web/views/dialogs/_ChangelogDialog.scss";
77+
@import "./vector-web/views/dialogs/_DevtoolsDialog.scss";
7778
@import "./vector-web/views/dialogs/_SetEmailDialog.scss";
7879
@import "./vector-web/views/dialogs/_SetPasswordDialog.scss";
7980
@import "./vector-web/views/directory/_NetworkDropdown.scss";
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
Copyright 2017 Michael Telatynski <7t3chguy@gmail.com>
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_DevTools_RoomStateExplorer_button {
18+
margin-bottom: 10px;
19+
}

0 commit comments

Comments
 (0)