Skip to content

Commit

Permalink
fix(Admin): Correction de la mise en page des cases à cochées (#1466)
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienReuiller authored Oct 17, 2024
1 parent 71cb6cd commit 02fdbd5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
20 changes: 16 additions & 4 deletions lemarche/static/itou_marche/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,27 @@

@media (max-width: 767px) {
div.flex-container {
flex-flow: wrap; /* changes to 'column' on small screens, but breaks stuff like checkboxes */
flex-flow: wrap;
/* changes to 'column' on small screens, but breaks stuff like checkboxes */
}
}

.custom-checkbox-select-multiple {
display: table-cell;
}
div.custom-checkbox-select-multiple > div > label {
width: 100%; /* 160px default ; to avoid line breaks */

div.custom-checkbox-select-multiple>div>label {
width: 100%;
/* 160px default ; to avoid line breaks */
}

#content-main .aligned label {
width: auto;
}

#content-main .aligned .help {
margin-left: 0;
padding-left: 0;
}

/* Modal style for tender change admin */
Expand Down Expand Up @@ -67,4 +79,4 @@ div.custom-checkbox-select-multiple > div > label {

#cancel-button:hover {
padding: 10px 15px;
}
}
8 changes: 8 additions & 0 deletions lemarche/templates/django/forms/widgets/checkbox_option.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{% if widget.wrap_label %}
<label {% if widget.attrs.id %}for="{{ widget.attrs.id }}"{% endif %}>
{% endif %}
{% include "django/forms/widgets/input.html" %}
{% if widget.wrap_label %}
{{ widget.label }}
</label>
{% endif %}

0 comments on commit 02fdbd5

Please sign in to comment.