@canyonjs/report-component 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -412,10 +412,10 @@ const CoverageDetail = ({ source, coverage, diff }) => {
|
|
|
412
412
|
});
|
|
413
413
|
})();
|
|
414
414
|
const lineNumbersMinChars = (() => {
|
|
415
|
-
return Math.max(...linesState.map((line) => line.hit)).toString().length +
|
|
415
|
+
return Math.max(...linesState.map((line) => line.hit)).toString().length + 9;
|
|
416
416
|
})();
|
|
417
417
|
useEffect(() => {
|
|
418
|
-
if (ref.current) {
|
|
418
|
+
if (ref.current && ref.current.innerHTML === "") {
|
|
419
419
|
const dom = ref.current;
|
|
420
420
|
const options = {
|
|
421
421
|
value: source,
|