diff options
author | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-07-23 17:28:31 +0200 |
---|---|---|
committer | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-07-23 17:28:47 +0200 |
commit | c9bb2e781dd5efa1706ff9166af167a9519fabe9 (patch) | |
tree | 6375f32eca3c1b2fe7ade3421853af195ebb7504 /server/sonar-web | |
parent | fb1cfbfb5814a2ac3893e16d80329f091ae3db36 (diff) | |
download | sonarqube-c9bb2e781dd5efa1706ff9166af167a9519fabe9.tar.gz sonarqube-c9bb2e781dd5efa1706ff9166af167a9519fabe9.zip |
SONAR-5460 Add some space, make param description togglable
Diffstat (limited to 'server/sonar-web')
-rw-r--r-- | server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-detail-view.coffee | 5 | ||||
-rw-r--r-- | server/sonar-web/src/main/less/coding-rules.less | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-detail-view.coffee b/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-detail-view.coffee index 6bb84a5be26..cb31e14f672 100644 --- a/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-detail-view.coffee +++ b/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-detail-view.coffee @@ -75,6 +75,7 @@ define [ 'click @ui.deleteCustomRule': 'deleteRule' 'click .coding-rules-subcharacteristic': 'toggleDebtInfo' + 'click .coding-rules-detail-parameter-name': 'toggleParameterDescription' initialize: (options) -> super options @@ -177,6 +178,10 @@ define [ false + toggleParameterDescription: (e) -> + jQuery(e.currentTarget).next('.coding-rules-detail-parameter-description').toggle(); + + hideContext: -> @contextRegion.reset() @$(@contextRegion.el).hide() diff --git a/server/sonar-web/src/main/less/coding-rules.less b/server/sonar-web/src/main/less/coding-rules.less index 34f299fad55..060f0f1e1e1 100644 --- a/server/sonar-web/src/main/less/coding-rules.less +++ b/server/sonar-web/src/main/less/coding-rules.less @@ -201,6 +201,7 @@ display: block; margin-left: 2 * @navigatorPadding; font-weight: bold; + cursor: pointer; } .coding-rules-detail-parameter-description { @@ -213,6 +214,7 @@ .box-sizing(border-box); .subtitle { + margin-top: @navigatorPadding; font-size: @baseFontSize; } } |