Skip to content

Commit

Permalink
fix: no color edit button over gradients
Browse files Browse the repository at this point in the history
  • Loading branch information
abose committed May 28, 2024
1 parent 80275ae commit 41f3877
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/extensions/default/QuickView/colorGradientProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,10 @@ define(function (require, exports, module) {
<div id='quick-view-color-swatch' data-for-test='${previewCSS}' class='color-swatch'
style='background: ${previewCSS}'>
</div>
<i class="fa fa-edit" style="color: ${previewCSS}; margin-top:5px;"></i>
<span style="color: ${previewCSS}; margin-top:5px;">${Strings.EDIT}</span>
<span style="${gradientMatch.match? "display: none;": ""}">
<i class="fa fa-edit" style="color: ${previewCSS}; margin-top:5px;"></i>
<span style="color: ${previewCSS}; margin-top:5px;">${Strings.EDIT}</span>
</span>
</div>`);
preview.click(function () {
if(gradientMatch.match) {
Expand Down

0 comments on commit 41f3877

Please sign in to comment.