small promoted attrs style tweaks

This commit is contained in:
zadam
2020-09-03 22:22:21 +02:00
parent 0bd9b849b2
commit 7787fa1758
2 changed files with 5 additions and 1 deletions

View File

@@ -167,6 +167,9 @@ export default class PromotedAttributesWidget extends TabAwareWidget {
}
$input.prop("step", step);
$input
.css("text-align", "right")
.css("width", "120");
}
else if (definition.labelType === 'boolean') {
$input.prop("type", "checkbox");
@@ -182,7 +185,7 @@ export default class PromotedAttributesWidget extends TabAwareWidget {
$input.prop("placeholder", "http://website...");
const $openButton = $("<span>")
.addClass("input-group-text open-external-link-button bx bx-trending-up")
.addClass("input-group-text open-external-link-button bx bx-window-open")
.prop("title", "Open external link")
.on('click', () => window.open($input.val(), '_blank'));