Skip to content

Commit

Permalink
#2257 Action Image alignment issue (#2258)
Browse files Browse the repository at this point in the history
Signed-off-by: srikant <[email protected]>
  • Loading branch information
srikant-ch5 authored Dec 4, 2024
1 parent 9b07ede commit e2bc02f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class ControlItem extends React.Component {

const action = this.actionFactory.generateAction(0, this.props.control.action);

const className = classNames("properties-control-item", { "hide": hidden });
const className = classNames("properties-control-item", { "hide": hidden }, { "properties-ci-action-item": action });

/*
* <ControlItem /> should be called from every control.
Expand All @@ -111,10 +111,14 @@ class ControlItem extends React.Component {
<div data-id={"properties-ci-" + this.props.control.name}
className={className} disabled={disabled}
>
{label}
{description}
{this.props.controlObj}
{action}
<div className="properties-ci-content-container">
{label}
{description}
{this.props.controlObj}
</div>
<div className="properties-ci-action-container">
{action}
</div>
</div>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
}
}

.properties-ci-action-item {
display: flex;
justify-content: space-between;
}

.properties-label-container {
display: flex;
align-items: center;
Expand Down

0 comments on commit e2bc02f

Please sign in to comment.