@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.mjs CHANGED
@@ -608,7 +608,8 @@ const getSidebarStyles$1 = (token, scope) => ({
608
608
  backgroundColor: token.colorBgContainer,
609
609
  overflowY: "auto",
610
610
  overflowX: "clip",
611
- borderRadius: token.borderRadius
611
+ borderRadius: token.borderRadius,
612
+ height: "100%"
612
613
  },
613
614
  [scope("content")]: { padding: token.padding },
614
615
  [scope("controls")]: {
@@ -1796,13 +1797,9 @@ const EndpointPage$1 = () => {
1796
1797
  [scope("docs-endpoint-container")]: {
1797
1798
  display: "flex",
1798
1799
  flexDirection: "column",
1799
- gap: token.marginLG,
1800
- height: "100%"
1801
- },
1802
- [scope("content")]: {
1803
- width: "100%",
1804
- height: "100%"
1800
+ gap: token.marginLG
1805
1801
  },
1802
+ [scope("content")]: { width: "100%" },
1806
1803
  [scope("code")]: {
1807
1804
  background: "unset",
1808
1805
  borderRadius: token.borderRadius,
@@ -2014,9 +2011,9 @@ const MainContent$1 = ({ searchEnabled, handleResetSearch, handleVisitLandingPag
2014
2011
  const { wrapSSR, cx, token } = useStyle("MainContent", (token, scope) => ({
2015
2012
  [scope("inner-doc-container")]: {
2016
2013
  backgroundColor: token.colorBgContainer,
2014
+ flex: 1,
2015
+ minWidth: 0,
2017
2016
  height: "100%",
2018
- width: "100%",
2019
- maxHeight: "100%",
2020
2017
  overflow: "auto",
2021
2018
  borderRadius: token.borderRadius,
2022
2019
  padding: token.paddingXL
@@ -6053,9 +6050,10 @@ const filterTreeData = (data, searchText) => {
6053
6050
  const getSidebarStyles = (token, scope) => ({
6054
6051
  [scope("sider")]: {
6055
6052
  backgroundColor: token.colorBgElevated,
6053
+ overflowY: "auto",
6056
6054
  overflowX: "clip",
6057
6055
  borderRadius: token.borderRadius,
6058
- height: "auto"
6056
+ height: "100%"
6059
6057
  },
6060
6058
  [scope("content")]: { padding: token.padding },
6061
6059
  [scope("controls")]: {
@@ -6468,13 +6466,9 @@ const EndpointPage = () => {
6468
6466
  [scope("docs-endpoint-container")]: {
6469
6467
  display: "flex",
6470
6468
  flexDirection: "column",
6471
- gap: token.marginLG,
6472
- height: "100%"
6473
- },
6474
- [scope("content")]: {
6475
- width: "100%",
6476
- height: "100%"
6469
+ gap: token.marginLG
6477
6470
  },
6471
+ [scope("content")]: { width: "100%" },
6478
6472
  [scope("code")]: {
6479
6473
  background: "unset",
6480
6474
  borderRadius: token.borderRadius,
@@ -6716,12 +6710,12 @@ const MainContent = ({ searchEnabled, handleResetSearch, handleVisitLandingPage
6716
6710
  const { focusedContent, transformedData } = useStore(({ view }) => view);
6717
6711
  const { wrapSSR, cx, token } = useStyle("MainContent", (token, scope) => ({
6718
6712
  [scope("inner-doc-container")]: {
6719
- width: "100%",
6720
- height: "auto",
6713
+ flex: 1,
6714
+ minWidth: 0,
6715
+ height: "100%",
6716
+ overflow: "auto",
6721
6717
  borderRadius: token.borderRadius,
6722
- padding: token.paddingXL,
6723
- overflow: "hidden",
6724
- minWidth: 0
6718
+ padding: token.paddingXL
6725
6719
  },
6726
6720
  [scope("centered")]: {
6727
6721
  display: "flex",
@@ -7228,8 +7222,7 @@ const ConsoleDocumentationLayout = ({ data, preSelectedApi, handleVisitLandingPa
7228
7222
  display: "flex",
7229
7223
  flexDirection: "column",
7230
7224
  gap: token.marginLG,
7231
- height: "100%",
7232
- overflowY: "auto"
7225
+ height: "100%"
7233
7226
  },
7234
7227
  [scope("section")]: {
7235
7228
  flexShrink: 0,
@@ -7237,8 +7230,8 @@ const ConsoleDocumentationLayout = ({ data, preSelectedApi, handleVisitLandingPa
7237
7230
  },
7238
7231
  [scope("docs-layout")]: {
7239
7232
  display: "flex",
7240
- flexShrink: 0,
7241
- height: "auto",
7233
+ flex: 1,
7234
+ minHeight: 0,
7242
7235
  gap: token.marginLG,
7243
7236
  width: "100%"
7244
7237
  },
@@ -7633,6 +7626,7 @@ const ConsoleDocumentationLayout = ({ data, preSelectedApi, handleVisitLandingPa
7633
7626
  });
7634
7627
  return /* @__PURE__ */ jsxs("div", {
7635
7628
  className: cx("documentation-container"),
7629
+ style: { overflow: mode === "view" ? "hidden" : "auto" },
7636
7630
  children: [
7637
7631
  contextHolder,
7638
7632
  /* @__PURE__ */ jsx("div", {