Skip to content

Commit ccfa44b

Browse files
author
FalkWolsky
committed
Adapting Style Changes to Stoplight API Docs
1 parent 8e91456 commit ccfa44b

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

client/packages/lowcoder/src/pages/ApplicationV2/ApiDocLayout.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const ApiDocView = styled.div`
6363
flex-grow: 1;
6464
padding-top: 0px;
6565
padding-left: 40px;
66-
max-width: 95%;
66+
max-width: 98%;
6767
`;
6868

6969
const StyleApiDocCover = styled.div`
@@ -98,12 +98,6 @@ export function ApiDoc(props: ApiDocLayoutProps) {
9898
onClick: () =>
9999
currentPath !== ALL_APPLICATIONS_URL && history.push(ALL_APPLICATIONS_URL),
100100
},
101-
{
102-
key: 0,
103-
title: trans("home.api"),
104-
onClick: () =>
105-
currentPath !== API_DOCS_URL && history.push(API_DOCS_URL),
106-
},
107101
...breadcrumb.map((b, i) => ({
108102
key: i+1,
109103
title: b.text,
@@ -137,11 +131,11 @@ export function ApiDoc(props: ApiDocLayoutProps) {
137131
<Card style={{ marginBottom: "20px", minHeight : "800px", width: "100%" }}>
138132
<div style={{width : "100%"}}> {/* className={styles.stoplightApidoc} */}
139133
<API
140-
layout="sidebar"
134+
layout="responsive"
141135
hideSchemas={true}
142136
hideInternal={true}
143137
hideExport={true}
144-
tryItCredentialsPolicy="omit"
138+
tryItCredentialsPolicy="include"
145139
tryItCorsProxy={isSelfHost ? undefined : 'https://api-service.lowcoder.cloud'}
146140
basePath="lowcoder-api"
147141
apiDescriptionUrl="https://api-service.lowcoder.cloud/api/docs/api-docs"

client/packages/lowcoder/src/pages/ApplicationV2/components/stoplight.styles.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)