[BUGFIX] Calc width for proportion bars
This commit is contained in:
parent
1909eb291e
commit
519f37cd14
@ -64,9 +64,8 @@ define(['d3-interpolate', 'snabbdom', 'filters/genericnode', 'helper'],
|
|||||||
var th = V.h('th', a);
|
var th = V.h('th', a);
|
||||||
var td = V.h('td', V.h('span', {
|
var td = V.h('td', V.h('span', {
|
||||||
style: {
|
style: {
|
||||||
width: Math.round(v * 100) + '%',
|
width: 'calc(25px + ' + Math.round(v * 90) + '%)',
|
||||||
backgroundColor: scale(v),
|
backgroundColor: scale(v)
|
||||||
color: 'white'
|
|
||||||
}
|
}
|
||||||
}, d[1].toFixed(0)));
|
}, d[1].toFixed(0)));
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
span {
|
span {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
color: $color-white;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
min-width: 1.5em;
|
min-width: 1.5em;
|
||||||
|
Loading…
Reference in New Issue
Block a user