This is an automated email from the ASF dual-hosted git repository.

michaelsmolina pushed a commit to branch 5.0
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 2e0363ec36a5e72ca61ad6e01d2d09db18410bb9
Author: SBIN2010 <[email protected]>
AuthorDate: Wed Mar 26 20:28:07 2025 +0300

    fix(ColorPickerControl): change color picker control width (#32851)
    
    (cherry picked from commit 37f626f5e2970e5b65a5ad5f157021fa82ed55cc)
---
 .../src/explore/components/controls/ColorPickerControl.jsx             | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/superset-frontend/src/explore/components/controls/ColorPickerControl.jsx 
b/superset-frontend/src/explore/components/controls/ColorPickerControl.jsx
index 1d140db0ae..56b86e5894 100644
--- a/superset-frontend/src/explore/components/controls/ColorPickerControl.jsx
+++ b/superset-frontend/src/explore/components/controls/ColorPickerControl.jsx
@@ -78,7 +78,7 @@ export default class ColorPickerControl extends Component {
   renderPopover() {
     const presetColors = getCategoricalSchemeRegistry()
       .get()
-      .colors.filter((s, i) => i < 7);
+      .colors.filter((s, i) => i < 9);
     return (
       <div id="filter-popover" className="color-popover">
         <SketchPicker
@@ -87,6 +87,7 @@ export default class ColorPickerControl extends Component {
             padding: 0 !important;
             box-shadow: none !important;
           `}
+          width={235}
           color={this.props.value}
           onChange={this.onChange}
           presetColors={presetColors}

Reply via email to