bramhanandlingala opened a new pull request, #69138:
URL: https://github.com/apache/airflow/pull/69138
Fixes #69116
While working with Param description_md in Airflow 3, I noticed that
inline code like `name` was getting extra blank lines before and after
it instead of rendering inline. Also DAG Docs were not showing in the
trigger popup at all, and the dialog was too narrow for longer descriptions.
## Root Cause
The inline code issue was caused by p={2} in ReactMarkdown.tsx which
adds 8px padding on all sides including top and bottom. This causes the
line height to break inside a p element making it look like paragraph
breaks around every inline code span.
For DAG Docs, the modal was already fetching dag.doc_md via
useDagServiceGetDag but never rendering it anywhere in the dialog.
For the narrow dialog, Dialog.Content had no width override so it was
using Chakra default width which is too small for longer descriptions.
## Changes
**ReactMarkdown.tsx**
- Changed p={2} to px={1.5} py={0.5} on inline Code component
- Added borderRadius, fontSize, verticalAlign to make inline code
visually distinct from normal text
- Reduced PreComponent margin from my={3} to my={2}
- Removed inline prop from code component (not valid in react-markdown v9)
- Restored rel and target on LinkComponent
**TriggerDAGModal.tsx**
- Added maxW="3xl" width="90vw" to Dialog.Content
- Added collapsible Accordion section that shows dag.doc_md at the
top of the modal when DAG documentation exists
**components.json**
- Added dagDocs translation key under triggerDag
## Type of change
- [x] Bug fix
- [x] Frontend only — no backend, API or database changes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]