- commit
- 50667ac430a3989684bb7cbcb42d28aa0f5f1db5
- parent
- 30a03a8def72d7b5e3cdae8114867388c3e6b25f
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2017-11-19 11:14
Revert "hide node__delegate for own in html" This reverts commit 9fdc3d74c0bdad8aae4159883a02276cfb6607eb. This way it is also hidden for all children (avoids cycles)
Diffstat
| M | static/scss/tree.scss | 22 | ++++++++++++++-------- |
| M | static/src/voterunner.js | 2 | +- |
2 files changed, 15 insertions, 9 deletions
diff --git a/static/scss/tree.scss b/static/scss/tree.scss
@@ -16,15 +16,21 @@ 16 16 outline-offset: -2px; 17 17 } 18 1819 -1 &.node--self > .node__body {20 -1 .node__header {21 -1 @media screen {22 -1 background-color: $color-link;23 -1 color: $color-bg;24 -1 }-1 19 &.node--self { -1 20 .node__delegate { -1 21 display: none; -1 22 } -1 23 -1 24 > .node__body { -1 25 .node__header { -1 26 @media screen { -1 27 background-color: $color-link; -1 28 color: $color-bg; -1 29 } 25 3026 -1 @media print {27 -1 font-weight: bold;-1 31 @media print { -1 32 font-weight: bold; -1 33 } 28 34 } 29 35 } 30 36 }
diff --git a/static/src/voterunner.js b/static/src/voterunner.js
@@ -115,7 +115,7 @@ var tplNode = function(nodes, node, ID) {
115 115 className: 'node__expand bar__item bar__item--button bar__item--left',
116 116 title: _(node.expanded ? 'collapse' : 'expand'),
117 117 }),
118 -1 node.id !== ID && h('button', {
-1 118 h('button', {
119 119 className: 'node__delegate bar__item bar__item--button bar__item--right',
120 120 title: _('delegate to ') + getName(node),
121 121 attributes: delegateAttrs,