diff options
author | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-07-22 09:50:29 +0200 |
---|---|---|
committer | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-07-22 09:50:29 +0200 |
commit | d2a6cb9963b8c6dd89620a7c50fcdc5b5645ec75 (patch) | |
tree | cd62086c5f3c97d121bbf7e62f0f6a914a0edddb | |
parent | fcc01fc2f80a914ed6a99742ff2a4c7d6799ca59 (diff) | |
download | sonarqube-d2a6cb9963b8c6dd89620a7c50fcdc5b5645ec75.tar.gz sonarqube-d2a6cb9963b8c6dd89620a7c50fcdc5b5645ec75.zip |
SONAR-3373 Fix width of fields in manual rules creation modal
3 files changed, 16 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/hbs/coding-rules/coding-rules-custom-rule-creation.hbs b/server/sonar-web/src/main/hbs/coding-rules/coding-rules-custom-rule-creation.hbs index 11439ba5373..1d9c78888f2 100644 --- a/server/sonar-web/src/main/hbs/coding-rules/coding-rules-custom-rule-creation.hbs +++ b/server/sonar-web/src/main/hbs/coding-rules/coding-rules-custom-rule-creation.hbs @@ -15,7 +15,8 @@ <tr class="property"> <th><h3>{{t 'name'}} <em class="mandatory">*</em></h3></th> <td> - <input type="text" name="name" id="coding-rules-custom-rule-creation-name" value="{{name}}"/> + <input type="text" name="name" id="coding-rules-custom-rule-creation-name" + class="coding-rules-name-key" value="{{name}}"/> </td> </tr> <tr class="property"> @@ -24,7 +25,8 @@ {{#if change}} {{key}} {{else}} - <input type="text" name="key" id="coding-rules-custom-rule-creation-key" value="{{internalKey}}"/> + <input type="text" name="key" id="coding-rules-custom-rule-creation-key" + class="coding-rules-name-key" value="{{internalKey}}"/> {{/if}} </td> </tr> @@ -32,7 +34,7 @@ <th><h3>{{t 'description'}} <em class="mandatory">*</em></h3></th> <td> <textarea type="textarea" name="markdown_description" id="coding-rules-custom-rule-creation-html-description" - rows="4" style="width: 100%; margin-bottom: 4px;">{{{mdDesc}}}</textarea> + class="coding-rules-markdown-description" rows="4">{{{mdDesc}}}</textarea> </td> </tr> <tr class="property"> diff --git a/server/sonar-web/src/main/hbs/coding-rules/coding-rules-manual-rule-creation.hbs b/server/sonar-web/src/main/hbs/coding-rules/coding-rules-manual-rule-creation.hbs index f7b027215b6..89d4747676c 100644 --- a/server/sonar-web/src/main/hbs/coding-rules/coding-rules-manual-rule-creation.hbs +++ b/server/sonar-web/src/main/hbs/coding-rules/coding-rules-manual-rule-creation.hbs @@ -15,7 +15,8 @@ <tr class="property"> <th><h3>{{t 'name'}} <em class="mandatory">*</em></h3></th> <td> - <input type="text" name="name" id="coding-rules-manual-rule-creation-name" value="{{name}}"/> + <input type="text" name="name" id="coding-rules-manual-rule-creation-name" + class="coding-rules-name-key" value="{{name}}"/> </td> </tr> <tr class="property"> @@ -24,7 +25,8 @@ {{#if change}} {{key}} {{else}} - <input type="text" name="key" id="coding-rules-manual-rule-creation-key" value="{{internalKey}}"/> + <input type="text" name="key" id="coding-rules-manual-rule-creation-key" + class="coding-rules-name-key" value="{{internalKey}}"/> {{/if}} </td> </tr> @@ -32,7 +34,7 @@ <th><h3>{{t 'description'}} <em class="mandatory">*</em></h3></th> <td> <textarea type="textarea" name="markdown_description" id="coding-rules-manual-rule-creation-html-description" - rows="4" style="width: 100%; margin-bottom: 4px;">{{{mdDesc}}}</textarea> + class="coding-rules-markdown-description" rows="4">{{{mdDesc}}}</textarea> </td> </tr> </table> diff --git a/server/sonar-web/src/main/less/coding-rules.less b/server/sonar-web/src/main/less/coding-rules.less index 1a4a15a9f1e..58fabb28ce0 100644 --- a/server/sonar-web/src/main/less/coding-rules.less +++ b/server/sonar-web/src/main/less/coding-rules.less @@ -342,7 +342,7 @@ } } -[id=coding-rules-custom-rule-creation-name], [id=coding-rules-custom-rule-creation-key] { +input.coding-rules-name-key { width: 30em; } @@ -350,6 +350,11 @@ padding-left: 2 * @navigatorPadding; } +textarea.coding-rules-markdown-description { + width: 100%; + margin-bottom: 4px; +} + .coding-rules-detail-custom-rule + .coding-rules-detail-custom-rule { margin-top: @navigatorPadding; padding-top: @navigatorPadding; |