mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-07-10 06:42:52 +02:00
Fix auth padding
This commit is contained in:
@@ -65,6 +65,7 @@ export function DynamicForm<T extends Record<string, JsonPrimitive>>({
|
|||||||
autocompleteFunctions={autocompleteFunctions}
|
autocompleteFunctions={autocompleteFunctions}
|
||||||
autocompleteVariables={autocompleteVariables}
|
autocompleteVariables={autocompleteVariables}
|
||||||
data={data}
|
data={data}
|
||||||
|
className="pb-4" // Pad the bottom to look nice
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -77,15 +78,17 @@ function FormInputs<T extends Record<string, JsonPrimitive>>({
|
|||||||
setDataAttr,
|
setDataAttr,
|
||||||
data,
|
data,
|
||||||
disabled,
|
disabled,
|
||||||
|
className,
|
||||||
}: Pick<
|
}: Pick<
|
||||||
Props<T>,
|
Props<T>,
|
||||||
'inputs' | 'autocompleteFunctions' | 'autocompleteVariables' | 'stateKey' | 'data'
|
'inputs' | 'autocompleteFunctions' | 'autocompleteVariables' | 'stateKey' | 'data'
|
||||||
> & {
|
> & {
|
||||||
setDataAttr: (name: string, value: JsonPrimitive) => void;
|
setDataAttr: (name: string, value: JsonPrimitive) => void;
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
|
className?: string;
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<VStack space={3} className="h-full overflow-auto">
|
<VStack space={3} className={classNames(className, 'h-full overflow-auto')}>
|
||||||
{inputs?.map((input, i) => {
|
{inputs?.map((input, i) => {
|
||||||
if ('hidden' in input && input.hidden) {
|
if ('hidden' in input && input.hidden) {
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user