mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 18:20:27 +00:00
Move chrome-css-fix out of js into css w/ comment
This commit is contained in:
@@ -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')} />
|
||||
|
||||
@@ -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.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user