mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-17 23:14:03 +01:00
Pad dynamic form for scrollbar
This commit is contained in:
@@ -92,7 +92,14 @@ function FormInputs<T extends Record<string, JsonPrimitive>>({
|
||||
className?: string;
|
||||
}) {
|
||||
return (
|
||||
<VStack space={3} className={classNames(className, 'h-full overflow-auto')}>
|
||||
<VStack
|
||||
space={3}
|
||||
className={classNames(
|
||||
className,
|
||||
'h-full overflow-auto',
|
||||
'pr-1', // A bit of space between inputs and scrollbar
|
||||
)}
|
||||
>
|
||||
{inputs?.map((input, i) => {
|
||||
if ('hidden' in input && input.hidden) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user