Merge pull request #5467 from quincylvania/tag-row-flexbox

Keeps the raw tag editor buttons fixed-width using flexbox
This commit is contained in:
Quincy Morgan
2018-11-04 13:07:20 -08:00
committed by GitHub
2 changed files with 18 additions and 28 deletions
+10 -6
View File
@@ -106,7 +106,10 @@ export function uiRawTagEditor(context) {
.attr('class', 'tag-row cf')
.classed('readonly', isReadOnly);
enter
var innerWrap = enter.append('div')
.attr('class', 'inner-wrap');
innerWrap
.append('div')
.attr('class', 'key-wrap')
.append('input')
@@ -117,7 +120,7 @@ export function uiRawTagEditor(context) {
.on('blur', keyChange)
.on('change', keyChange);
enter
innerWrap
.append('div')
.attr('class', 'input-wrap-position')
.append('input')
@@ -129,7 +132,7 @@ export function uiRawTagEditor(context) {
.on('change', valueChange)
.on('keydown.push-more', pushMore);
enter
innerWrap
.append('button')
.attr('tabindex', -1)
.attr('class', 'remove minor')
@@ -169,9 +172,10 @@ export function uiRawTagEditor(context) {
reference.showing(false);
}
row
.call(reference.button)
.call(reference.body);
row.select('.inner-wrap')
.call(reference.button);
row.call(reference.body);
});
items.selectAll('input.key')