Fixing column delete button css and margin
This commit is contained in:
parent
3a12124d47
commit
ac27f0f2c6
|
|
@ -16,17 +16,15 @@ export interface ColumnAction {
|
|||
dynamicTrigger: string;
|
||||
}
|
||||
const StyledDeleteIcon = styled(FormIcons.DELETE_ICON as AnyStyledComponent)`
|
||||
padding: 5px 5px;
|
||||
padding: 5px 0px;
|
||||
position: absolute;
|
||||
right: 8px;
|
||||
cursor: pointer;
|
||||
top: 0px;
|
||||
`;
|
||||
|
||||
const StyledInputText = styled(InputText)`
|
||||
&& {
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
const Wrapper = styled.div`
|
||||
margin-bottom: 8px;
|
||||
`;
|
||||
|
||||
class ColumnActionSelectorControl extends BaseControl<
|
||||
|
|
@ -44,24 +42,28 @@ class ColumnActionSelectorControl extends BaseControl<
|
|||
position: "relative",
|
||||
}}
|
||||
>
|
||||
<StyledInputText
|
||||
label={columnAction.label}
|
||||
value={columnAction.label}
|
||||
onChange={this.updateColumnActionLabel.bind(
|
||||
this,
|
||||
columnAction,
|
||||
)}
|
||||
isValid={true}
|
||||
/>
|
||||
<DynamicActionCreator
|
||||
value={columnAction.dynamicTrigger}
|
||||
isValid={(columnAction as any).isValid}
|
||||
validationMessage={(columnAction as any).message}
|
||||
onValueChange={this.updateColumnActionFunction.bind(
|
||||
this,
|
||||
columnAction,
|
||||
)}
|
||||
/>
|
||||
<Wrapper>
|
||||
<InputText
|
||||
label={columnAction.label}
|
||||
value={columnAction.label}
|
||||
onChange={this.updateColumnActionLabel.bind(
|
||||
this,
|
||||
columnAction,
|
||||
)}
|
||||
isValid={true}
|
||||
/>
|
||||
</Wrapper>
|
||||
<Wrapper>
|
||||
<DynamicActionCreator
|
||||
value={columnAction.dynamicTrigger}
|
||||
isValid={(columnAction as any).isValid}
|
||||
validationMessage={(columnAction as any).message}
|
||||
onValueChange={this.updateColumnActionFunction.bind(
|
||||
this,
|
||||
columnAction,
|
||||
)}
|
||||
/>
|
||||
</Wrapper>
|
||||
<StyledDeleteIcon
|
||||
height={20}
|
||||
width={20}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user