Fix incorrect checkbox padding

This commit is contained in:
navaneeth 2021-09-05 13:29:57 +05:30
parent 9a0a0fe3b0
commit a360fdda74

View file

@ -38,18 +38,16 @@ export const Checkbox = function Checkbox({
return (
<div className="row" style={{ width, height, display:parsedWidgetVisibility ? '' : 'none' }} onClick={event => {event.stopPropagation(); onComponentClick(id, component)}}>
<div className="col py-1">
<label className="form-check form-check-inline">
<input
className="form-check-input"
type="checkbox"
onClick={(e) => {
toggleValue(e);
}}
/>
<span className="form-check-label" style={{color: textColor}}>{label}</span>
<label className="my-auto mx-2 form-check form-check-inline">
<input
className="form-check-input"
type="checkbox"
onClick={(e) => {
toggleValue(e);
}}
/>
<span className="form-check-label" style={{color: textColor}}>{label}</span>
</label>
</div>
</div>
);
};