Skip to content

Commit 933da58

Browse files
authored
fix(web): fix bodyparams height (#1101)
1 parent 17c72e3 commit 933da58

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

web/src/components/Editor/JSONEditor.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function JSONEditor(props: {
3636
colorMode?: string;
3737
onChange?: (value: string | undefined) => void;
3838
}) {
39-
const { value, onChange, height = "95%", colorMode = COLOR_MODE.light } = props;
39+
const { value, onChange, height = "90%", colorMode = COLOR_MODE.light } = props;
4040

4141
const editorRef = useRef<monaco.editor.IStandaloneCodeEditor | null>();
4242
const subscriptionRef = useRef<monaco.IDisposable | undefined>(undefined);

web/src/pages/app/functions/mods/DebugPanel/index.tsx

+6-3
Original file line numberDiff line numberDiff line change
@@ -202,15 +202,14 @@ export default function DebugPanel(props: { containerRef: any; showOverlay: bool
202202
)}
203203
</Tab>
204204
)}
205-
206205
<Tab>
207206
Headers
208207
{headerParams.length > 0 && (
209208
<span className="ml-1">({headerParams.length})</span>
210209
)}
211210
</Tab>
212211
</TabList>
213-
<TabPanels className="flex-grow overflow-auto">
212+
<TabPanels className="relative flex-1 overflow-auto">
214213
<TabPanel px={0} py={1}>
215214
<QueryParamsTab
216215
key={"QueryParamsTab"}
@@ -221,7 +220,11 @@ export default function DebugPanel(props: { containerRef: any; showOverlay: bool
221220
</TabPanel>
222221

223222
{HAS_BODY_PARAMS_METHODS.includes(runningMethod) && (
224-
<TabPanel px={0} py={1} style={{ height: "100%", overflow: "auto" }}>
223+
<TabPanel
224+
px={0}
225+
py={1}
226+
className="absolute bottom-0 left-0 right-0 top-0 overflow-auto"
227+
>
225228
<BodyParamsTab
226229
onChange={(values) => {
227230
setBodyParams(values);

0 commit comments

Comments
 (0)