mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-24 01:28:35 +02:00
Pad dynamic form for scrollbar
This commit is contained in:
@@ -92,7 +92,14 @@ function FormInputs<T extends Record<string, JsonPrimitive>>({
|
|||||||
className?: string;
|
className?: string;
|
||||||
}) {
|
}) {
|
||||||
return (
|
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) => {
|
{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