]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5553 Long values of rule parameters should somehow wrap
authorStas Vilchik <vilchiks@gmail.com>
Tue, 6 Jan 2015 16:33:06 +0000 (17:33 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Tue, 6 Jan 2015 16:33:06 +0000 (17:33 +0100)
server/sonar-web/src/main/hbs/coding-rules/rule/coding-rules-rule-parameters.hbs
server/sonar-web/src/main/less/coding-rules.less

index f0dcb3d8e1189a070e42bfdbb1b875f11e49392a..1cacd684a55e551aeb1e1aa31be978dcbd81c58b 100644 (file)
@@ -8,15 +8,17 @@
         {{#if ../../templateKey}}
           <div class="subtitle">
             {{#if defaultValue }}
-              <span class="value">{{defaultValue}}</span>
+              <span class="coding-rules-detail-parameter-value">{{defaultValue}}</span>
             {{else}}
               {{t 'coding_rules.parameter.empty'}}
             {{/if}}
           </div>
         {{else}}
           {{#if defaultValue}}
-            <div class="subtitle">{{t 'coding_rules.parameters.default_value'}} <span
-                class="value">{{defaultValue}}</span></div>
+            <div class="subtitle">
+              {{t 'coding_rules.parameters.default_value'}}<br>
+              <span class="coding-rules-detail-parameter-value">{{defaultValue}}</span>
+            </div>
           {{/if}}
         {{/if}}
       </td>
index 7ff98d7b18e94ef733f66b1d0367db591a6234c9..d451f51406264cf16c2bc9f9ad1cef815df32f4e 100644 (file)
   }
 }
 
+.coding-rules-detail-parameter-value {
+  word-break: break-all;
+}
+
 .coding-rules-detail-parameter-details {
   display: inline-block;
   font-size: @baseFontSize;