Skip to content

Commit c044cb1

Browse files
committed
Fixed the scrolling on the JSON editor on the test page
1 parent 8ba226b commit c044cb1

File tree

1 file changed

+4
-8
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.v3.$projectParam.test.tasks.$taskParam

1 file changed

+4
-8
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.v3.$projectParam.test.tasks.$taskParam/route.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ function StandardTaskForm({ task, runs }: { task: TestTask["task"]; runs: Standa
226226
<input type="hidden" name="triggerSource" value={"STANDARD"} />
227227
<ResizablePanelGroup orientation="horizontal">
228228
<ResizablePanel id="test-task-main" min="100px" default="60%">
229-
<div className="h-full bg-charcoal-900">
229+
<div className="flex h-full flex-col overflow-hidden bg-charcoal-900">
230230
<TabContainer className="px-3 pt-2">
231231
<TabButton
232232
isActive={!tab || tab === "payload"}
@@ -248,7 +248,7 @@ function StandardTaskForm({ task, runs }: { task: TestTask["task"]; runs: Standa
248248
Metadata
249249
</TabButton>
250250
</TabContainer>
251-
<div>
251+
<div className="flex-1 overflow-hidden">
252252
<JSONEditor
253253
defaultValue={defaultPayloadJson}
254254
readOnly={false}
@@ -265,11 +265,9 @@ function StandardTaskForm({ task, runs }: { task: TestTask["task"]; runs: Standa
265265
}
266266
}}
267267
height="100%"
268-
min-height="100%"
269-
max-height="100%"
270268
autoFocus={!tab || tab === "payload"}
271269
placeholder="{ }"
272-
className={cn("h-full", tab === "metadata" && "hidden")}
270+
className={cn("h-full overflow-auto", tab === "metadata" && "hidden")}
273271
/>
274272
<JSONEditor
275273
defaultValue={defaultMetadataJson}
@@ -287,11 +285,9 @@ function StandardTaskForm({ task, runs }: { task: TestTask["task"]; runs: Standa
287285
}
288286
}}
289287
height="100%"
290-
min-height="100%"
291-
max-height="100%"
292288
autoFocus={tab === "metadata"}
293289
placeholder=""
294-
className={cn("h-full", tab !== "metadata" && "hidden")}
290+
className={cn("h-full overflow-auto", tab !== "metadata" && "hidden")}
295291
/>
296292
</div>
297293
</div>

0 commit comments

Comments
 (0)