@canyonjs/report-component 0.0.2 → 0.0.3

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.css CHANGED
@@ -1,5 +1,24 @@
1
+ .canyonjs-report-html .canyon-coverage-detail-spin-wrapper {
2
+ height: 100%;
3
+ }
4
+ .canyonjs-report-html
5
+ .canyon-coverage-detail-spin-wrapper
6
+ > .ant-spin-container {
7
+ height: 100%;
8
+ }
1
9
  .canyonjs-report-html {
2
- /*background-color: #535bf2;*/
10
+ height: 100%;
11
+ display: flex;
12
+ flex-direction: column;
13
+ }
14
+ .canyonjs-report-html a {
15
+ color: #0071c2;
16
+ cursor: pointer;
17
+ }
18
+ .canyonjs-report-html a:hover {
19
+ color: #0071c2;
20
+ opacity: 0.8;
21
+ text-decoration: underline;
3
22
  }
4
23
  .canyonjs-report-html .line-number-wrapper {
5
24
  display: flex;
package/dist/index.js CHANGED
@@ -346,10 +346,10 @@ const CoverageDetail = ({ source, coverage, diff }) => {
346
346
  }
347
347
  }
348
348
  }, [source]);
349
- return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("div", {
349
+ return /* @__PURE__ */ jsx("div", {
350
350
  ref,
351
- style: { height: "calc(100vh - 150px)" }
352
- }) });
351
+ style: { height: "100%" }
352
+ });
353
353
  };
354
354
  var CoverageDetail_default = CoverageDetail;
355
355
 
@@ -850,13 +850,13 @@ const CanyonReport = ({ value, name, dataSource, onSelect }) => {
850
850
  filenameKeywords,
851
851
  onlyChange
852
852
  ]);
853
- return /* @__PURE__ */ jsx("div", {
854
- className: rootClassName,
855
- children: /* @__PURE__ */ jsxs(ConfigProvider, {
856
- theme: { token: {
857
- colorPrimary: "#0071c2",
858
- borderRadius: 2
859
- } },
853
+ return /* @__PURE__ */ jsx(ConfigProvider, {
854
+ theme: { token: {
855
+ colorPrimary: "#0071c2",
856
+ borderRadius: 2
857
+ } },
858
+ children: /* @__PURE__ */ jsxs("div", {
859
+ className: rootClassName,
860
860
  children: [
861
861
  /* @__PURE__ */ jsx("style", { children: `
862
862
  .${rootClassName} .canyon-coverage-detail-spin-wrapper { height: 100%; }
@@ -888,8 +888,7 @@ const CanyonReport = ({ value, name, dataSource, onSelect }) => {
888
888
  style: {
889
889
  flex: 1,
890
890
  minHeight: 0,
891
- overflow: "auto",
892
- height: "100%"
891
+ overflow: "auto"
893
892
  },
894
893
  children: /* @__PURE__ */ jsx(Spin, {
895
894
  spinning: !isFileDataReady,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@canyonjs/report-component",
3
3
  "type": "module",
4
- "version": "0.0.2",
4
+ "version": "0.0.3",
5
5
  "author": "Travis Zhang<https://github.com/travzhang>",
6
6
  "repository": {
7
7
  "type": "git",