Skip to content

Commit afca404

Browse files
tischsoicŁukasz Serwatka
authored andcommitted
EZP-29811: Content field definitions is misaligned while creating Content Type (#790)
* EZP-29811: Fix Trash Content field definition btn's styles * Remove redundant ez-icon-trash class from two buttons
1 parent 82dd934 commit afca404

File tree

4 files changed

+8
-23
lines changed

4 files changed

+8
-23
lines changed

src/bundle/Resources/public/scss/_card.scss

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,12 @@
3434
padding: .25rem 1.25rem;
3535
justify-content: space-between;
3636
z-index: 1040;
37+
}
3738

38-
.form-inline {
39-
.btn-danger {
40-
.ez-icon {
41-
width: 1.5rem;
42-
height: 1.5rem;
43-
margin-top: 5px;
44-
}
45-
}
39+
.form-inline {
40+
.btn-danger {
41+
display: flex;
42+
height: calculateRem(48px);
4643
}
4744
}
4845
}

src/bundle/Resources/public/scss/_icons.scss

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,6 @@
6969
}
7070
}
7171

72-
.ez-card__header {
73-
.form-inline {
74-
.btn-danger {
75-
.ez-icon {
76-
width: 1.2rem;
77-
height: 1.2rem;
78-
fill: $white;
79-
}
80-
}
81-
}
82-
}
83-
8472
.ez-btn--extra-actions {
8573
.ez-icon {
8674
pointer-events: none;

src/bundle/Resources/views/admin/content_type/create.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
{% block _ezrepoforms_contenttype_update_removeFieldDefinition_widget %}
88
<button type="{{ type|default('button') }}" {{ block('button_attributes') }}>
9-
<svg class="ez-icon ez-icon-trash">
9+
<svg class="ez-icon ez-icon--medium ez-icon--light">
1010
<use xlink:href="{{ asset('bundles/ezplatformadminui/img/ez-icons.svg') }}#trash"></use>
1111
</svg>
1212
</button>
@@ -53,7 +53,7 @@
5353
<section class="container mt-4 px-5">
5454
<div class="card ez-card">
5555
<div class="ez-card__header ez-card__header--secondary d-flex justify-content-between">
56-
<div class="p-2">
56+
<div class="p-3">
5757
{{ 'content_type.view.create.content_field_definitions'|trans|desc('Content field definitions') }}
5858
</div>
5959
<div class="form-inline">

src/bundle/Resources/views/admin/content_type/edit.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
class="btn btn-danger"
6161
data-toggle="modal"
6262
data-target="#delete-content-type-modal">
63-
<svg class="ez-icon">
63+
<svg class="ez-icon ez-icon--medium ez-icon--light">
6464
<use xlink:href="{{ asset('bundles/ezplatformadminui/img/ez-icons.svg') }}#trash"></use>
6565
</svg>
6666
</button>

0 commit comments

Comments
 (0)