mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 17:08:34 +00:00
Fix the default margins of toggle switch widget (#568)
This commit is contained in:
parent
c46d57edba
commit
3ad6e6b617
2 changed files with 3 additions and 3 deletions
|
|
@ -47,7 +47,7 @@ export const ToggleSwitch = ({
|
|||
const toggle = () => setOn(!on)
|
||||
|
||||
return (
|
||||
<div className="row" style={{ width, height }} onClick={() => onComponentClick(id, component)}>
|
||||
<div className="row py-1" style={{ width, height }} onClick={() => onComponentClick(id, component)}>
|
||||
<span className="form-check-label form-check-label col-auto" style={{color: textColor}}>{label}</span>
|
||||
<div className="col">
|
||||
<Switch on={on} onClick={toggle} onChange={toggleValue} />
|
||||
|
|
|
|||
|
|
@ -421,8 +421,8 @@ export const componentTypes = [
|
|||
description: 'Toggle Switch',
|
||||
component: 'ToggleSwitch',
|
||||
defaultSize: {
|
||||
width: 150,
|
||||
height: 50
|
||||
width: 130,
|
||||
height: 30
|
||||
},
|
||||
others: {
|
||||
showOnDesktop: { type: 'toggle', displayName: 'Show on desktop? '},
|
||||
|
|
|
|||
Loading…
Reference in a new issue