diff --git a/apps/client/src/widgets/dialogs/revisions.tsx b/apps/client/src/widgets/dialogs/revisions.tsx index 5b774ce30..f5e0b203d 100644 --- a/apps/client/src/widgets/dialogs/revisions.tsx +++ b/apps/client/src/widgets/dialogs/revisions.tsx @@ -107,7 +107,7 @@ function RevisionsDialogComponent() { function RevisionsList({ revisions, onSelect, currentRevision }: { revisions: RevisionItem[], onSelect: (val: string) => void, currentRevision?: RevisionItem }) { return ( - + {revisions.map((item) => void; style?: CSSProperties; + fullHeight?: boolean; } -export default function FormList({ children, onSelect, style }: FormListOpts) { +export default function FormList({ children, onSelect, style, fullHeight }: FormListOpts) { const wrapperRef = useRef(null); const triggerRef = useRef(null); @@ -28,9 +29,17 @@ export default function FormList({ children, onSelect, style }: FormListOpts) { } }, [ triggerRef, wrapperRef ]); + const builtinStyles = useMemo(() => { + const style: CSSProperties = {}; + if (fullHeight) { + style.height = "100%"; + } + return style; + }, [ fullHeight ]); + return ( -
-
+
+