Skip to content

Commit

Permalink
IBX-6725: Autosave notification is in wrong place
Browse files Browse the repository at this point in the history
  • Loading branch information
GrabowskiM committed Oct 25, 2023
1 parent 17f7e51 commit 85bb41f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 20 deletions.
22 changes: 7 additions & 15 deletions src/bundle/Resources/public/scss/_edit-header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@
flex-direction: column;
justify-content: center;
padding-left: 0;
margin-top: calculateRem(20px);
height: calculateRem(48px);

.ibexa-icon {
margin-right: calculateRem(8px);
Expand All @@ -77,14 +79,6 @@
color: $ibexa-color-dark-400;
}
}

&--right {
.ibexa-autosave {
position: absolute;
top: calculateRem(96px);
right: calculateRem(64px);
}
}
}

&__context-actions {
Expand All @@ -110,6 +104,7 @@
color: $ibexa-color-dark-400;
opacity: 1;
transition: all $ibexa-admin-transition-duration $ibexa-admin-transition;
margin: 0;
}

&__subtitle {
Expand Down Expand Up @@ -137,8 +132,10 @@
}

.ibexa-autosave {
opacity: 1;
transition: all $ibexa-admin-transition-duration $ibexa-admin-transition;
display: inline-block;
border-left: calculateRem(1px) solid $ibexa-color-light;
padding-left: calculateRem(12px);
margin-left: calculateRem(12px);
}

&--slim {
Expand Down Expand Up @@ -193,10 +190,5 @@
}
}
}

.ibexa-autosave {
opacity: 0;
height: 0;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
{{ action_object|default('') }}
{{ content_type_name|default('') }}
</label>
{% if show_autosave_status|default(false) %}
{% include '@ibexadesign/ui/autosave.html.twig' %}
{% endif %}
</div>
</div>
<div class="col-3 ibexa-edit-header__column ibexa-context-menu-wrapper">
Expand Down Expand Up @@ -58,11 +61,6 @@
<div class="ibexa-edit-header__subtitle">{{ subtitle }}</div>
{% endif %}
</div>
<div class="ibexa-edit-header__column ibexa-edit-header__column--right">
{% if show_autosave_status|default(false) %}
{% include '@ibexadesign/ui/autosave.html.twig' %}
{% endif %}
</div>
{% if show_extra_bottom_content %}
<div class="ibexa-edit-header__extra-bottom-content">
{{ block('extra_bottom_content') }}
Expand Down

0 comments on commit 85bb41f

Please sign in to comment.