-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Fix asset name overflow in DAG list view #57108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
pierrejeambrun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a screenshot after this change?
I'm not a fan of adding hard coded width in pixel. That could still happen on small screens I guess. Instead we could wrap/word break if it's too big.
- Add maxWidth constraint to HStack containers in AssetSchedule component - Prevents asset names from overlapping with Latest Run column
f21b69d to
d8defcf
Compare
airflow-core/src/airflow/ui/src/pages/DagsList/AssetSchedule.tsx
Outdated
Show resolved
Hide resolved
7a721e1 to
d939705
Compare
d939705 to
01e2721
Compare
|
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
* Fix asset name overflow in DAG list view - Add maxWidth constraint to HStack containers in AssetSchedule component - Prevents asset names from overlapping with Latest Run column * Fix asset name overflow with word-break and line clamping * Use TruncatedText component instead --------- (cherry picked from commit 9fa4462) Co-authored-by: Tyrell H <73722828+TyrellHaywood@users.noreply.github.com> Co-authored-by: pierrejeambrun <pierrejbrun@gmail.com>
* Fix asset name overflow in DAG list view - Add maxWidth constraint to HStack containers in AssetSchedule component - Prevents asset names from overlapping with Latest Run column * Fix asset name overflow with word-break and line clamping * Use TruncatedText component instead --------- (cherry picked from commit 9fa4462) Co-authored-by: Tyrell H <73722828+TyrellHaywood@users.noreply.github.com> Co-authored-by: pierrejeambrun <pierrejbrun@gmail.com>
* Fix asset name overflow in DAG list view - Add maxWidth constraint to HStack containers in AssetSchedule component - Prevents asset names from overlapping with Latest Run column * Fix asset name overflow with word-break and line clamping * Use TruncatedText component instead --------- (cherry picked from commit 9fa4462) Co-authored-by: Tyrell H <73722828+TyrellHaywood@users.noreply.github.com> Co-authored-by: pierrejeambrun <pierrejbrun@gmail.com>


Description:
Fixes asset names overlapping with the "Latest Run" field in the DAG list view by adding
maxWidthconstraints toHStackcontainers in theAssetSchedulecomponent.When DAGs have asset-based schedules with long asset names, the names were extending beyond their column boundaries and overlapping with the "Latest Run" timestamp field, making it difficult to read.
This change adds
maxWidth="200px"to theHStackcontainers wrapping asset names in theAssetSchedulecomponent, ensuring proper text truncation and preventing overlap with adjacent columns.closes: #56669
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.