Skip to content

Commit cdd04d2

Browse files
authored
IBX-9978: Fixed media field checkboxes alignment (#1639)
1 parent 3d538ee commit cdd04d2

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/bundle/Resources/public/scss/fieldType/edit/_ezmedia.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@
1818
}
1919
}
2020

21+
&__input-wrapper {
22+
&--checkbox-input {
23+
display: flex;
24+
align-items: flex-start;
25+
gap: calculateRem(8px);
26+
27+
.ibexa-input--checkbox {
28+
margin-top: calculateRem(4px);
29+
}
30+
}
31+
}
32+
2133
&__spinner {
2234
display: none;
2335
}

src/bundle/Resources/views/themes/admin/ui/field_type/edit/binary_base_fields.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% block checkbox_row %}
22
<div class="ibexa-field-edit-preview__info ibexa-field-edit-preview__info--{{ name }}">
3-
<div class="ibexa-field-edit-preview__input-wrapper">
3+
<div class="ibexa-field-edit-preview__input-wrapper ibexa-field-edit-preview__input-wrapper--checkbox-input">
44
<input class="ibexa-input ibexa-input--checkbox" type="checkbox" {{ block('widget_attributes') }}{% if value is defined %} value="{{ value }}"{% endif %}{% if checked %} checked="checked"{% endif %}>
55
<span class="ibexa-data-source__label-text">{{ translation_domain is same as(false) ? label : label|trans({}, translation_domain) }}</span>
66
</div>

0 commit comments

Comments
 (0)