aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-01-06 17:33:06 +0100
committerStas Vilchik <vilchiks@gmail.com>2015-01-06 17:33:06 +0100
commitd07ee363941a63ee34719824f72d2e34ff81dda5 (patch)
treedca45211f4454c05d95459c4cdcf09278f442b43 /server/sonar-web
parent25d3cdf5bcc9a876b7c9c5a046e30dfd5b46d424 (diff)
downloadsonarqube-d07ee363941a63ee34719824f72d2e34ff81dda5.tar.gz
sonarqube-d07ee363941a63ee34719824f72d2e34ff81dda5.zip
SONAR-5553 Long values of rule parameters should somehow wrap
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/hbs/coding-rules/rule/coding-rules-rule-parameters.hbs8
-rw-r--r--server/sonar-web/src/main/less/coding-rules.less4
2 files changed, 9 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/hbs/coding-rules/rule/coding-rules-rule-parameters.hbs b/server/sonar-web/src/main/hbs/coding-rules/rule/coding-rules-rule-parameters.hbs
index f0dcb3d8e11..1cacd684a55 100644
--- a/server/sonar-web/src/main/hbs/coding-rules/rule/coding-rules-rule-parameters.hbs
+++ b/server/sonar-web/src/main/hbs/coding-rules/rule/coding-rules-rule-parameters.hbs
@@ -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>
diff --git a/server/sonar-web/src/main/less/coding-rules.less b/server/sonar-web/src/main/less/coding-rules.less
index 7ff98d7b18e..d451f514062 100644
--- a/server/sonar-web/src/main/less/coding-rules.less
+++ b/server/sonar-web/src/main/less/coding-rules.less
@@ -256,6 +256,10 @@
}
}
+.coding-rules-detail-parameter-value {
+ word-break: break-all;
+}
+
.coding-rules-detail-parameter-details {
display: inline-block;
font-size: @baseFontSize;