You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ep...@apache.org on 2022/12/01 07:29:51 UTC
[airflow] 04/05: allow scroll in triggered dag runs modal (#27965)
This is an automated email from the ASF dual-hosted git repository.
ephraimanierobi pushed a commit to branch v2-5-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit cd1aea4d211eb76abe10377f47aa4ac36190307a
Author: Brent Bovenzi <br...@astronomer.io>
AuthorDate: Mon Nov 28 19:16:04 2022 -0600
allow scroll in triggered dag runs modal (#27965)
Co-authored-by: Jed Cunningham <66...@users.noreply.github.com>
(cherry picked from commit 5e4f4a3556db5111c2ae36af1716719a8494efc7)
---
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>