Move chrome-css-fix out of js into css w/ comment

This commit is contained in:
Simon Howe
2016-08-10 14:10:10 +02:00
parent 4d5d0d5dc2
commit 5cf8ee2a6b
2 changed files with 7 additions and 1 deletions

View File

@@ -128,7 +128,7 @@ class Node extends React.Component {
<foreignObject style={{pointerEvents: 'none'}} x={labelOffsetX} y={labelOffsetY}
width={labelWidth} height="100em">
<div className="node-label-wrapper"
style={{pointerEvents: 'all', fontSize, lineHeight: '150%', maxWidth: labelWidth}}
style={{pointerEvents: 'all', fontSize, maxWidth: labelWidth}}
{...mouseEvents}>
<div className={labelClassName}>
<MatchedText text={label} match={matches.get('label')} />

View File

@@ -371,6 +371,12 @@ h2 {
}
.node-label-wrapper {
//
// Base line height doesn't hop across foreignObject =/
//
line-height: 150%;
//
// inline-block so wrapper is only as wide as content.
//