7 | | 3. checkboxes are not aligned with their labels. |
| 7 | 2. long labels have uncovered another issue: incorrect line height and a forced height in general. After applying the following patch: |
| 8 | |
| 9 | {{{#!diff |
| 10 | M django/contrib/admin/static/admin/css/forms.css |
| 11 | @@ -84,14 +84,13 @@ form ul.inline li { |
| 12 | min-width: 160px; |
| 13 | width: 160px; |
| 14 | word-wrap: break-word; |
| 15 | - line-height: 1; |
| 16 | + line-height: 1.5; |
| 17 | } |
| 18 | |
| 19 | .aligned label:not(.vCheckboxLabel):after { |
| 20 | content: ''; |
| 21 | display: inline-block; |
| 22 | vertical-align: middle; |
| 23 | - height: 1.625rem; |
| 24 | } |
| 25 | |
| 26 | .aligned label + p, .aligned .checkbox-row + div.help, .aligned label + div.readonly { |
| 27 | }}} |
| 28 | |
| 29 | long labels looks more readable: |
| 30 | |
| 31 | [[Image(long-labels-with-patch.png)]] |
| 32 | |
| 33 | 3. checkboxes are not aligned with their labels. I don't have a patch for this, only 2 screenshots: |
| 34 | |
| 35 | with flexbox: |
| 36 | |
| 37 | [[Image(unaligned-checkbox.png)]] |
| 38 | |
| 39 | without flexbox: |
| 40 | |
| 41 | [[Image(checkbox-wo-flexbox.png)]] |