Fix width issue with button to add new project instructions
authorMatthias Schmidt <gravatronics@live.com>
Sun, 26 May 2019 14:59:07 +0000 (16:59 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 26 May 2019 14:59:07 +0000 (16:59 +0200)
In German, the button label is too wide for the previous column width.

See 2772

wcfsetup/install/files/acp/templates/__devtoolsProjectInstructionsFormField.tpl
wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Field/Devtools/Project/Instructions.js

index c1887d6dc5c1e57ff5475f6126dfe9ac9ed0193f..6d9ccd378153878fde73b1437b55c5389dddb8db 100644 (file)
@@ -1,5 +1,5 @@
 <div class="row rowColGap formGrid">
-       <dl class="col-xs-12 col-md-11">
+       <dl class="col-xs-12 col-md-10">
                <dt></dt>
                <dd>
                        <select id="{@$field->getPrefixedId()}_instructionsType">
@@ -18,7 +18,7 @@
                </dd>
        </dl>
        
-       <dl class="col-xs-12 col-md-1">
+       <dl class="col-xs-12 col-md-2 text-right">
                <dt></dt>
                <dd>
                        <a href="#" class="button small" id="{@$field->getPrefixedId()}_addButton">{lang}wcf.global.button.add{/lang}</a>
@@ -77,7 +77,7 @@
                        </dd>
                </dl>
                
-               <dl class="col-xs-12 col-md-11">
+               <dl class="col-xs-12 col-md-10">
                        <dt></dt>
                        <dd>
                                <label><input type="checkbox" id="{@$field->getPrefixedId()}_instructions{literal}{$instructionsId}{/literal}_runStandalone" value="1"> {lang}wcf.acp.devtools.project.instruction.runStandalone{/lang}</label>
@@ -85,7 +85,7 @@
                        </dd>
                </dl>
                
-               <dl class="col-xs-12 col-md-1">
+               <dl class="col-xs-12 col-md-2 text-right">
                        <dt></dt>
                        <dd>
                                <a href="#" class="button small" id="{@$field->getPrefixedId()}_instructions{literal}{$instructionsId}{/literal}_addButton">{lang}wcf.global.button.add{/lang}</a>
index d2ffd4ff5846c3970a93292ccf1cbcff437d358f..adfda6f40fc6a9fbc83d3cc971aa89b2ae249f6e 100644 (file)
@@ -668,13 +668,13 @@ define([
                        var fromVersionDl = this._fromVersion.closest('dl');
                        
                        if (this._instructionsType.value === 'update') {
-                               instructionsTypeList.remove('col-md-11');
-                               instructionsTypeList.add('col-md-6');
+                               instructionsTypeList.remove('col-md-10');
+                               instructionsTypeList.add('col-md-5');
                                elShow(fromVersionDl);
                        }
                        else {
-                               instructionsTypeList.remove('col-md-6');
-                               instructionsTypeList.add('col-md-11');
+                               instructionsTypeList.remove('col-md-5');
+                               instructionsTypeList.add('col-md-10');
                                elHide(fromVersionDl);
                        }
                },