Skip to content

Commit deb10d2

Browse files
committed
fix: align-items-end on shared rows to fix input drift when labels wrap (v0.37.17)
When two half-width fields share a row and one label wraps to more lines than the other, Bootstrap's default align-items:stretch places each input relative to its own label top, causing the inputs to sit at different heights. Adding align-items-end to the row element bottom-aligns all columns so every input in the row shares the same horizontal baseline. Same fix applied to third/fourth grouped rows.
1 parent 6c0f940 commit deb10d2

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.37.17] - 2026-03-27
11+
12+
### Fixed
13+
- **Row field vertical alignment** — When fields sharing a row have labels of different lengths (e.g. one wraps to two lines), the input controls no longer drift to different heights. Both the `half`-width paired row and the `third`/`fourth`-width grouped row now emit `align-items-end` on the Bootstrap row element so all inputs in a shared row land on the same baseline.
14+
1015
## [0.37.16] - 2026-03-27
1116

1217
### Removed

django_forms_workflows/forms.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ def __init__(self, form_definition, user=None, initial_data=None, *args, **kwarg
200200
Field(next_field.field_name),
201201
css_class=f"col-md-6 field-wrapper field-{next_field.field_name}",
202202
),
203+
css_class="align-items-end",
203204
)
204205
)
205206
i += 2
@@ -233,7 +234,8 @@ def __init__(self, form_definition, user=None, initial_data=None, *args, **kwarg
233234
css_class=f"{col_class} field-wrapper field-{f.field_name}",
234235
)
235236
for f in group
236-
]
237+
],
238+
css_class="align-items-end",
237239
)
238240
)
239241
else:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "django-forms-workflows"
3-
version = "0.37.16"
3+
version = "0.37.17"
44
description = "Enterprise-grade, database-driven form builder with approval workflows and external data integration"
55
license = "LGPL-3.0-only"
66
readme = "README.md"

0 commit comments

Comments
 (0)