From d517a6685d6c58e42068dbcdfa4ffbb8a5a8a9e6 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Lievremont Date: Wed, 8 Oct 2014 15:52:45 +0200 Subject: [PATCH] SONAR-5574 Improve edition of custom rules --- .../coding-rules-custom-rule-creation-view.coffee | 2 +- ...ng-rules-quality-profile-activation-view.coffee | 2 +- .../coding-rules-custom-rule-creation.hbs | 2 +- server/sonar-web/src/main/less/coding-rules.less | 14 ++++++++++++++ 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-custom-rule-creation-view.coffee b/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-custom-rule-creation-view.coffee index 951a224414e..810f4ccfd89 100644 --- a/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-custom-rule-creation-view.coffee +++ b/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-custom-rule-creation-view.coffee @@ -7,7 +7,7 @@ define [ ) -> class CodingRulesCustomRuleCreationView extends Marionette.ItemView - className: 'modal' + className: 'modal coding-rules-modal' template: Templates['coding-rules-custom-rule-creation'] diff --git a/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-quality-profile-activation-view.coffee b/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-quality-profile-activation-view.coffee index fc14043896e..785075e167f 100644 --- a/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-quality-profile-activation-view.coffee +++ b/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-quality-profile-activation-view.coffee @@ -7,7 +7,7 @@ define [ ) -> class CodingRulesQualityProfileActivationView extends Marionette.ItemView - className: 'modal' + className: 'modal coding-rules-modal' template: Templates['coding-rules-quality-profile-activation'] 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 e9db47f05eb..9f62f211344 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 @@ -23,7 +23,7 @@

{{t 'key'}}{{#unless change}} *{{/unless}}

{{#if change}} - {{key}} + {{key}} {{else}} diff --git a/server/sonar-web/src/main/less/coding-rules.less b/server/sonar-web/src/main/less/coding-rules.less index 31488bd252b..02220f1eaab 100644 --- a/server/sonar-web/src/main/less/coding-rules.less +++ b/server/sonar-web/src/main/less/coding-rules.less @@ -390,6 +390,20 @@ textarea.coding-rules-markdown-description { font-weight: bold; } +.coding-rules-detail-custom-rule-key { + display:inline-block; + max-width: 460px; + whitespace: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.coding-rules-modal .property { + input, textarea { + width: 100%; + } +} + .coding-rules-subcharacteristic-more { display: none; } -- 2.39.5