<ComponentDetach component={component}/>
</span>
</td>
- <td>
+ <td className="code-name-cell">
<ComponentName
component={component}
onBrowse={onBrowse}/>
</thead>
<tbody>
<Component
+ key={baseComponent.uuid}
component={baseComponent}
coverageMetric={coverageMetric}/>
<tr className="blank">
{components.length ? (
components.map(component => (
<Component
- key={component.key}
+ key={component.uuid}
component={component}
coverageMetric={coverageMetric}
onBrowse={onBrowse}/>
const Truncated = ({ children, title }) => (
<span
className="code-truncated"
- title={title}
+ data-title={title}
data-toggle="tooltip">
{children}
</span>
.text-ellipsis;
}
+.code-name-cell {
+ max-width: 0;
+}
+
+.code-name-cell .code-truncated {
+ max-width: 100%;
+}
+
.code-source-viewer .source-viewer-header-component {
visibility: hidden;
}
.to.equal('span');
expect(output.text())
.to.equal('123');
- expect(output.prop('title'))
+ expect(output.prop('data-title'))
.to.equal('ABC');
});
});