fix(ui): prevent content leak in MaxSizedBox bottom overflow (#17991)

This commit is contained in:
Jerop Kipruto
2026-02-02 18:37:33 -05:00
committed by GitHub
parent 8cae90f404
commit c159c85c89
3 changed files with 43 additions and 2 deletions
@@ -120,7 +120,12 @@ export const MaxSizedBox: React.FC<MaxSizedBoxProps> = ({
hidden ...
</Text>
)}
<Box flexDirection="column" overflow="hidden" flexGrow={1}>
<Box
flexDirection="column"
overflow="hidden"
flexGrow={0}
maxHeight={isOverflowing ? visibleContentHeight : undefined}
>
<Box
flexDirection="column"
ref={onRefChange}