This is an automated email from the ASF dual-hosted git repository.
pierrejeambrun pushed a commit to branch v2-11-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v2-11-test by this push:
new 233f9aa063a Fix bad width w/no options in multi-select DAG parameter
(#51516)
233f9aa063a is described below
commit 233f9aa063ae3da04811e2760d8bde9471418f2d
Author: Fred Thomsen <[email protected]>
AuthorDate: Tue Jun 10 09:37:39 2025 -0500
Fix bad width w/no options in multi-select DAG parameter (#51516)
Address inproper input element width when no options are present in a
multi-select field for a DAG parameter in the DAG trigger page. If the
parameter:
* is in a section: the element would become too narrow making the
dropdown options unreadable.
* is NOT in a section: the element would overflow it's parent if
re-sized smaller
Address by setting width to fill the parent element as other DAG trigger
paramter input fields behave.
closes: #50322
---
airflow/www/static/js/trigger.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/airflow/www/static/js/trigger.js b/airflow/www/static/js/trigger.js
index 9242984e75b..012930afa89 100644
--- a/airflow/www/static/js/trigger.js
+++ b/airflow/www/static/js/trigger.js
@@ -170,6 +170,7 @@ function initForm() {
$(elementId).select2({
placeholder: "Select Values",
allowClear: true,
+ width: "100%",
});
elements[i].addEventListener("blur", updateJSONconf);
} else if (elements[i].type === "checkbox") {