Skip to content

Commit

Permalink
issue-75: fix display problem
Browse files Browse the repository at this point in the history
  • Loading branch information
netweng committed Oct 17, 2024
1 parent 4d62ba1 commit 267ff56
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cloudtower-api-doc/swagger/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ i18next.init({
},
lng: SupportLanguage.zh,
updateMissing: true,
fallbackLng: [SupportLanguage.en, SupportLanguage.zh],
fallbackLng: null,
fallbackNS,
interpolation: {
prefix: "{",
Expand Down
11 changes: 10 additions & 1 deletion cloudtower-api-doc/swagger/overwrite.css
Original file line number Diff line number Diff line change
Expand Up @@ -250,4 +250,13 @@ div.menu__list-item-collapsible > a[aria-expanded=true]::after {
/* recursive label */
.sc-kqnjJL.sc-zjkyB.kMcpvW.kGqNFZ {
display: none;
}
}
/* request samples */
div.sc-kHOZwM:has(>pre.sc-hOGkXu), div.sc-DtmNo:has( .redoc-json) {
height: 500px;
overflow: scroll;
}
.sc-hmjpVf:has(.redoc-json) {
flex: unset;
}

2 changes: 1 addition & 1 deletion cloudtower-api-doc/swagger/redoc/Operation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const Operation:React.FC<OperationProps> = observer((props) => {
(
<RightPanel data-cy="samples-block">
{ !store.options.pathInMiddlePanel && !isWebhook ? (<Endpoint operation={operation}/>) : null}
<RequestSamples operation={operation}/>
<RequestSamples operation={operation} defaultLanguage='payload'/>
<ResponseSamples operation={operation}/>
<CallbackSamples callbacks={operation.callbacks}/>
</RightPanel>
Expand Down

0 comments on commit 267ff56

Please sign in to comment.