This is an automated email from the ASF dual-hosted git repository.
bbovenzi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 5e4f4a3556 allow scroll in triggered dag runs modal (#27965)
5e4f4a3556 is described below
commit 5e4f4a3556db5111c2ae36af1716719a8494efc7
Author: Brent Bovenzi <[email protected]>
AuthorDate: Mon Nov 28 19:16:04 2022 -0600
allow scroll in triggered dag runs modal (#27965)
Co-authored-by: Jed Cunningham
<[email protected]>
---
airflow/www/static/js/components/Table/Cells.tsx | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/airflow/www/static/js/components/Table/Cells.tsx
b/airflow/www/static/js/components/Table/Cells.tsx
index 4850d0772e..6c34f5d9b1 100644
--- a/airflow/www/static/js/components/Table/Cells.tsx
+++ b/airflow/www/static/js/components/Table/Cells.tsx
@@ -110,7 +110,14 @@ export const TriggeredRuns = ({ cell: { value, row } }:
CellProps) => {
return (
<Box>
<Text color="blue.600" cursor="pointer"
onClick={onToggle}>{value.length}</Text>
- <Modal size="3xl" isOpen={isOpen} onClose={onClose} portalProps={{
containerRef }}>
+ <Modal
+ size="3xl"
+ isOpen={isOpen}
+ onClose={onClose}
+ scrollBehavior="inside"
+ blockScrollOnMount={false}
+ portalProps={{ containerRef }}
+ >
<ModalOverlay />
<ModalContent>
<ModalHeader>
@@ -127,6 +134,7 @@ export const TriggeredRuns = ({ cell: { value, row } }:
CellProps) => {
<Table
data={data}
columns={columns}
+ pageSize={data.length}
/>
</ModalBody>
</ModalContent>