@innovastudio/contentbox 1.6.142 → 1.6.143
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -10668,7 +10668,7 @@ class PanelText {
|
|
10668
10668
|
<button title="${out('Color')}" class="btn-color is-btn-color"></button>
|
10669
10669
|
</div>
|
10670
10670
|
</div>
|
10671
|
-
<div class="mr-8">
|
10671
|
+
<div class="mr-8 div-text-gradient-control">
|
10672
10672
|
<div class="label mt-2">${out('Gradient')}:</div>
|
10673
10673
|
<div class="group">
|
10674
10674
|
<button title="${out('Gradient')}" class="btn-gradient is-btn-color"></button>
|
@@ -11116,6 +11116,14 @@ class PanelText {
|
|
11116
11116
|
if (!activeElement) return;
|
11117
11117
|
}
|
11118
11118
|
|
11119
|
+
const divTextGradient = this.panel.querySelector('.div-text-gradient-control');
|
11120
|
+
|
11121
|
+
if (activeElement.closest('[role="button"]')) {
|
11122
|
+
divTextGradient.style.display = 'none';
|
11123
|
+
} else {
|
11124
|
+
divTextGradient.style.display = '';
|
11125
|
+
}
|
11126
|
+
|
11119
11127
|
const btnColorPick = this.panel.querySelector('.btn-color');
|
11120
11128
|
let currentColor = this.text.getStyle(activeElement, 'color');
|
11121
11129
|
btnColorPick.style.backgroundColor = currentColor;
|