[openstreetmap/openstreetmap-website] Refactor login form to use form helpers for password field (PR #4935)
Anton Khorev
notifications at github.com
Thu Jul 4 04:32:18 UTC 2024
@AntonKhorev requested changes on this pull request.
> + <div class="d-flex flex-wrap column-gap-3 justify-content-between align-items-baseline">
+ <%= f.label :password, t(".password"), :class => "my-2" %>
https://github.com/openstreetmap/openstreetmap-website/pull/4935#discussion_r1661380070 talks about the height of the whole row, yet the margin is applied just to the label. Why not:
```suggestion
<div class="d-flex flex-wrap column-gap-3 justify-content-between align-items-baseline mb-2">
<%= f.label :password, t(".password") %>
```
Before/after:
 
Also we usually add bottom margin, not both top and bottom.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4935#pullrequestreview-2157925643
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4935/review/2157925643 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240703/ea273a97/attachment.htm>
More information about the rails-dev
mailing list