Fix object flex bug

This commit is contained in:
MrKBear 2022-03-06 11:30:27 +08:00
parent a684db2306
commit aff68fa435
3 changed files with 11 additions and 3 deletions

View File

@ -62,12 +62,18 @@ class CommandBar extends Component<ICommandBarProps & IMixinSettingProps & IMixi
{this.getRenderButton({
iconName: "WebAppBuilderFragmentCreate",
i18NKey: "Command.Bar.Add.Group.Info",
click: () => this.props.status ? this.props.status.newGroup() : undefined
click: () => {
this.props.status ? this.props.status.newGroup() : undefined;
this.props.status ? this.props.status.model.draw() : undefined;
}
})}
{this.getRenderButton({
iconName: "CubeShape",
i18NKey: "Command.Bar.Add.Range.Info",
click: () => this.props.status ? this.props.status.newRange() : undefined
click: () => {
this.props.status ? this.props.status.newRange() : undefined;
this.props.status ? this.props.status.model.draw() : undefined;
}
})}
{this.getRenderButton({ iconName: "StepSharedAdd", i18NKey: "Command.Bar.Add.Behavior.Info" })}
{this.getRenderButton({ iconName: "Tag", i18NKey: "Command.Bar.Add.Tag.Info" })}

View File

@ -11,7 +11,7 @@ div.details-list {
min-height: 30px;
div.details-list-value {
padding: 5px 10px;
padding: 5px 5px;
display: flex;
justify-content: center;
align-items: center;
@ -19,6 +19,7 @@ div.details-list {
div.details-list-checkbox {
display: flex;
flex-shrink: 0;
width: 30px;
align-items: center;
justify-content: center;

View File

@ -22,6 +22,7 @@ div.object-list-command-bar {
width: 30px;
height: 100%;
display: flex;
flex-shrink: 0;
justify-content: center;
align-items: center;
user-select: none;