This commit is contained in:
Mirco Wittrien 2021-06-01 16:43:03 +02:00
parent 2e536164ca
commit 0ddadf2937
2 changed files with 8 additions and 13 deletions

View File

@ -5558,22 +5558,13 @@ module.exports = (_ => {
return !this.props.colors.length ? BDFDB.ReactUtils.createElement("div", {
className: BDFDB.disCN.colorpickerswatchsinglewrapper,
children: customSwatch
}) : BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.Flex, {
}) : BDFDB.ReactUtils.createElement("div", {
className: BDFDB.DOMUtils.formatClassName(BDFDB.disCN.colorpickerswatches, BDFDB.disCN.colorpickerswatchescontainer, this.props.disabled && BDFDB.disCN.colorpickerswatchesdisabled),
children: [
BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.Flex.Child, {
className: BDFDB.disCN.marginreset,
shrink: 0,
grow: 0,
children: customSwatch
}),
BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.Flex, {
direction: InternalComponents.LibraryComponents.Flex.Direction.VERTICAL,
className: BDFDB.disCN.flexmarginreset,
grow: 1,
children: this.props.colorRows.map(row => BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.Flex, {
customSwatch,
BDFDB.ReactUtils.createElement("div", {
children: this.props.colorRows.map(row => BDFDB.ReactUtils.createElement("div", {
className: BDFDB.disCN.colorpickerrow,
wrap: InternalComponents.LibraryComponents.Flex.Wrap.WRAP,
children: row.map(color => BDFDB.ReactUtils.createElement(this.ColorSwatch, {
swatches: this,
color: color,

View File

@ -1253,6 +1253,10 @@ img:not([src]), img[src=""], img[src="null"] {
margin-top: 8px;
}
[REPLACE_CLASS_colorpickerswatches] > div:not([class]),
[REPLACE_CLASS_colorpickerswatches] [REPLACE_CLASS_colorpickerswatch] {
flex: 1 1 auto;
}
[REPLACE_CLASS_colorpickerswatchsinglewrapper] {
position: relative;
z-index: 1;