|
@@ -246,19 +246,11 @@ export default {
|
|
|
width: this.TEXT_INDENT_SIZE,
|
|
|
},
|
|
|
});
|
|
|
- optionsGroups[0].styles = {};
|
|
|
- if (optionsGroups[0].elements[0].textStyles.paddingLeft) {
|
|
|
- optionsGroups[0].elements[0].textStyles = {
|
|
|
- ...optionsGroups[0].elements[0].textStyles,
|
|
|
- textIndent: `-${this.TEXT_INDENT_SIZE * 2}px`,
|
|
|
- paddingLeft: `${this.TEXT_INDENT_SIZE * 2}px`,
|
|
|
- };
|
|
|
- } else {
|
|
|
- optionsGroups[0].elements[0].textStyles = {
|
|
|
- ...optionsGroups[0].elements[0].textStyles,
|
|
|
- ...this.getFullTextIndentStyle(),
|
|
|
- };
|
|
|
- }
|
|
|
+ optionsGroups[0].elements[0].textStyles = {
|
|
|
+ ...optionsGroups[0].elements[0].textStyles,
|
|
|
+ textIndent: `-${this.TEXT_INDENT_SIZE * 2}px`,
|
|
|
+ paddingLeft: `${this.TEXT_INDENT_SIZE}px`,
|
|
|
+ };
|
|
|
}
|
|
|
groups.push(...optionsGroups);
|
|
|
}
|