mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Added logic to custom portal icon delete
no refs. - fixed issue that users can't reselect custom icon in portal by making the delete button only visible when the custom icon is selected
This commit is contained in:
parent
d65195aba4
commit
ed1433b809
2 changed files with 7 additions and 1 deletions
|
@ -206,9 +206,11 @@
|
|||
alt="icon"
|
||||
data-test-icon-img
|
||||
>
|
||||
{{#if (eq this.buttonIcon this.customIcon)}}
|
||||
<button type="button" class="gh-btn gh-btn-hover-red gh-portal-button-deleteicon" {{action "deleteCustomIcon"}}>
|
||||
<span> {{svg-jar "trash" class="w5 h5"}} </span>
|
||||
</button>
|
||||
{{/if}}
|
||||
{{else}}
|
||||
<button type="button" class="gh-btn gh-portal-button-uploadicon" onclick={{action "triggerFileDialog"}} data-test-image-upload-btn="icon">
|
||||
<span>{{svg-jar "add" class="w5 h5"}}</span>
|
||||
|
|
|
@ -437,7 +437,11 @@
|
|||
width: 50px;
|
||||
}
|
||||
|
||||
.gh-portal-custom-icon:hover .gh-portal-button-custom {
|
||||
.gh-portal-button-custom.selected-icon:hover {
|
||||
box-shadow: 0px 0px 0px 1px color-mod(var(--blue) a(40%));
|
||||
}
|
||||
|
||||
.gh-portal-custom-icon:hover .gh-portal-button-custom.selected-icon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue