feat: JSON comments support + full-height layout
This commit is contained in:
16
src/componets/env/Environment.tsx
vendored
16
src/componets/env/Environment.tsx
vendored
@@ -94,10 +94,10 @@ export function Environment({ envs, onChanged, onSelected, onAdd, onRemove }: En
|
||||
));
|
||||
|
||||
return (
|
||||
<Card variant="bordered" padding="none" className="h-full">
|
||||
<CardBody className="space-y-1">
|
||||
<Card variant="bordered" padding="none" className="h-full overflow-hidden flex flex-col">
|
||||
<CardBody className="space-y-2 flex flex-col h-full overflow-hidden">
|
||||
{/* Environment Selector */}
|
||||
<div className="flex gap-2">
|
||||
<div className="flex-shrink-0 flex gap-2">
|
||||
<div className="flex-1">
|
||||
<Select
|
||||
label="Environment"
|
||||
@@ -112,7 +112,7 @@ export function Environment({ envs, onChanged, onSelected, onAdd, onRemove }: En
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col justify-center gap-2 pt-6">
|
||||
<div className="flex flex-col justify-center gap-2 pt-6 flex-shrink-0">
|
||||
<div className="flex gap-2">
|
||||
<Button
|
||||
variant="success"
|
||||
@@ -134,13 +134,13 @@ export function Environment({ envs, onChanged, onSelected, onAdd, onRemove }: En
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Parameters Section */}
|
||||
<div>
|
||||
<h3 className="text-sm font-semibold text-slate-700 mb-1 uppercase tracking-wide">
|
||||
{/* Parameters Section - Scrollable */}
|
||||
<div className="flex-1 overflow-hidden flex flex-col min-h-0">
|
||||
<h3 className="text-sm font-semibold text-slate-700 mb-1 uppercase tracking-wide flex-shrink-0">
|
||||
Parameters
|
||||
</h3>
|
||||
|
||||
<div className="space-y-0">
|
||||
<div className="flex-1 overflow-y-auto space-y-0 pr-2 -mr-2">
|
||||
{paramCtrls}
|
||||
|
||||
<EnvironmentParam
|
||||
|
||||
Reference in New Issue
Block a user