Fixes label button wrap on right-to-left layouts

This commit is contained in:
Quincy Morgan
2018-10-15 21:20:44 -07:00
parent ffe38c7975
commit 169a92df7c
2 changed files with 5 additions and 6 deletions
+2 -2
View File
@@ -1254,10 +1254,10 @@ a.hide-toggle {
right: 0;
height: 100%;
background: transparent;
text-align: right;
}
[dir='rtl'] .form-label-button-wrap {
text-align: left;
right: auto;
left: 0;
}
.form-label-button-wrap .tag-reference-button {
+3 -4
View File
@@ -146,10 +146,6 @@ export function uiRawMemberEditor(context) {
var label = d3_select(this).append('label')
.attr('class', 'form-label');
// add the button wrap beneath the label text
var buttonWrap = label.append('div')
.attr('class', 'form-label-button-wrap');
var labelLink = label.append('a')
.attr('href', '#')
.on('click', selectMember);
@@ -165,6 +161,9 @@ export function uiRawMemberEditor(context) {
.attr('class', 'member-entity-name')
.text(function(d) { return utilDisplayName(d.member); });
var buttonWrap = label.append('div')
.attr('class', 'form-label-button-wrap');
buttonWrap.append('button')
.attr('class', 'download-icon')
.attr('title', t('icons.zoom_to'))