stuff
This commit is contained in:
parent
2e536164ca
commit
0ddadf2937
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue