@digi-frontend/dgate-api-documentation 4.0.3 → 4.0.4

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.cjs CHANGED
@@ -637,7 +637,8 @@ const getSidebarStyles$1 = (token, scope) => ({
637
637
  backgroundColor: token.colorBgContainer,
638
638
  overflowY: "auto",
639
639
  overflowX: "clip",
640
- borderRadius: token.borderRadius
640
+ borderRadius: token.borderRadius,
641
+ height: "100%"
641
642
  },
642
643
  [scope("content")]: { padding: token.padding },
643
644
  [scope("controls")]: {
@@ -1825,13 +1826,9 @@ const EndpointPage$1 = () => {
1825
1826
  [scope("docs-endpoint-container")]: {
1826
1827
  display: "flex",
1827
1828
  flexDirection: "column",
1828
- gap: token.marginLG,
1829
- height: "100%"
1830
- },
1831
- [scope("content")]: {
1832
- width: "100%",
1833
- height: "100%"
1829
+ gap: token.marginLG
1834
1830
  },
1831
+ [scope("content")]: { width: "100%" },
1835
1832
  [scope("code")]: {
1836
1833
  background: "unset",
1837
1834
  borderRadius: token.borderRadius,
@@ -2043,9 +2040,9 @@ const MainContent$1 = ({ searchEnabled, handleResetSearch, handleVisitLandingPag
2043
2040
  const { wrapSSR, cx, token } = useStyle("MainContent", (token, scope) => ({
2044
2041
  [scope("inner-doc-container")]: {
2045
2042
  backgroundColor: token.colorBgContainer,
2043
+ flex: 1,
2044
+ minWidth: 0,
2046
2045
  height: "100%",
2047
- width: "100%",
2048
- maxHeight: "100%",
2049
2046
  overflow: "auto",
2050
2047
  borderRadius: token.borderRadius,
2051
2048
  padding: token.paddingXL
@@ -6082,9 +6079,10 @@ const filterTreeData = (data, searchText) => {
6082
6079
  const getSidebarStyles = (token, scope) => ({
6083
6080
  [scope("sider")]: {
6084
6081
  backgroundColor: token.colorBgElevated,
6082
+ overflowY: "auto",
6085
6083
  overflowX: "clip",
6086
6084
  borderRadius: token.borderRadius,
6087
- height: "auto"
6085
+ height: "100%"
6088
6086
  },
6089
6087
  [scope("content")]: { padding: token.padding },
6090
6088
  [scope("controls")]: {
@@ -6497,13 +6495,9 @@ const EndpointPage = () => {
6497
6495
  [scope("docs-endpoint-container")]: {
6498
6496
  display: "flex",
6499
6497
  flexDirection: "column",
6500
- gap: token.marginLG,
6501
- height: "100%"
6502
- },
6503
- [scope("content")]: {
6504
- width: "100%",
6505
- height: "100%"
6498
+ gap: token.marginLG
6506
6499
  },
6500
+ [scope("content")]: { width: "100%" },
6507
6501
  [scope("code")]: {
6508
6502
  background: "unset",
6509
6503
  borderRadius: token.borderRadius,
@@ -6745,12 +6739,12 @@ const MainContent = ({ searchEnabled, handleResetSearch, handleVisitLandingPage
6745
6739
  const { focusedContent, transformedData } = useStore(({ view }) => view);
6746
6740
  const { wrapSSR, cx, token } = useStyle("MainContent", (token, scope) => ({
6747
6741
  [scope("inner-doc-container")]: {
6748
- width: "100%",
6749
- height: "auto",
6742
+ flex: 1,
6743
+ minWidth: 0,
6744
+ height: "100%",
6745
+ overflow: "auto",
6750
6746
  borderRadius: token.borderRadius,
6751
- padding: token.paddingXL,
6752
- overflow: "hidden",
6753
- minWidth: 0
6747
+ padding: token.paddingXL
6754
6748
  },
6755
6749
  [scope("centered")]: {
6756
6750
  display: "flex",
@@ -7257,8 +7251,7 @@ const ConsoleDocumentationLayout = ({ data, preSelectedApi, handleVisitLandingPa
7257
7251
  display: "flex",
7258
7252
  flexDirection: "column",
7259
7253
  gap: token.marginLG,
7260
- height: "100%",
7261
- overflowY: "auto"
7254
+ height: "100%"
7262
7255
  },
7263
7256
  [scope("section")]: {
7264
7257
  flexShrink: 0,
@@ -7266,8 +7259,8 @@ const ConsoleDocumentationLayout = ({ data, preSelectedApi, handleVisitLandingPa
7266
7259
  },
7267
7260
  [scope("docs-layout")]: {
7268
7261
  display: "flex",
7269
- flexShrink: 0,
7270
- height: "auto",
7262
+ flex: 1,
7263
+ minHeight: 0,
7271
7264
  gap: token.marginLG,
7272
7265
  width: "100%"
7273
7266
  },
@@ -7662,6 +7655,7 @@ const ConsoleDocumentationLayout = ({ data, preSelectedApi, handleVisitLandingPa
7662
7655
  });
7663
7656
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
7664
7657
  className: cx("documentation-container"),
7658
+ style: { overflow: mode === "view" ? "hidden" : "auto" },
7665
7659
  children: [
7666
7660
  contextHolder,
7667
7661
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {