This is an automated email from the ASF dual-hosted git repository.
jli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 37f626f5e2 fix(ColorPickerControl): change color picker control width
(#32851)
37f626f5e2 is described below
commit 37f626f5e2970e5b65a5ad5f157021fa82ed55cc
Author: SBIN2010 <[email protected]>
AuthorDate: Wed Mar 26 20:28:07 2025 +0300
fix(ColorPickerControl): change color picker control width (#32851)
---
.../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}