Skip to content

Commit

Permalink
Fix spinner position and drag icon in elements panel header
Browse files Browse the repository at this point in the history
  • Loading branch information
Björn Richter committed Jun 26, 2017
1 parent 8b84e42 commit f53460d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions app/assets/stylesheets/alchemy/spinner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@
}
}

.element-header .spinner {
position: static;
transform: none;
}

@keyframes spinner {
0%, 100% {
opacity: 1;
Expand Down
4 changes: 2 additions & 2 deletions app/views/alchemy/admin/elements/publish.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ var label = el.find('> .element-toolbar .publish-element-button label');

<%- if @element.public? -%>
icon.removeClass('icon-not-visible');
icon.addClass('icon-visible');
icon.addClass('icon-drag');
label.text('<%= Alchemy.t(:hide_element) %>');
<%- else -%>
icon.removeClass('icon-visible');
icon.removeClass('icon-drag');
icon.addClass('icon-not-visible');
label.text('<%= Alchemy.t(:show_element) %>');
<%- end -%>
Expand Down

0 comments on commit f53460d

Please sign in to comment.