mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
Fix the margins of dropdown and multiselect widgets (#566)
This commit is contained in:
parent
02be26d86a
commit
c46d57edba
3 changed files with 7 additions and 7 deletions
|
|
@ -57,11 +57,11 @@ export const DropDown = function DropDown({
|
|||
}, [currentValue]);
|
||||
|
||||
return (
|
||||
<div className="row" style={{ width, height }} onClick={() => onComponentClick(id, component)}>
|
||||
<div className="row g-0" style={{ width, height }} onClick={() => onComponentClick(id, component)}>
|
||||
<div className="col-auto">
|
||||
<label className="form-label p-2">{label}</label>
|
||||
<label style={{marginRight: '1rem'}} className="form-label py-2">{label}</label>
|
||||
</div>
|
||||
<div className="col">
|
||||
<div className="col px-0">
|
||||
<SelectSearch
|
||||
options={selectOptions}
|
||||
value={currentValue}
|
||||
|
|
|
|||
|
|
@ -40,11 +40,11 @@ export const Multiselect = function Multiselect({
|
|||
}, [newValue]);
|
||||
|
||||
return (
|
||||
<div className="row" style={{ width, height }} onClick={() => onComponentClick(id, component)}>
|
||||
<div className="row g-0" style={{ width, height }} onClick={() => onComponentClick(id, component)}>
|
||||
<div className="col-auto">
|
||||
<label className="form-label p-2">{label}</label>
|
||||
<label style={{marginRight: '1rem'}} className="form-label py-2">{label}</label>
|
||||
</div>
|
||||
<div className="col">
|
||||
<div className="col px-0">
|
||||
<SelectSearch
|
||||
options={selectOptions}
|
||||
value={currentValue}
|
||||
|
|
|
|||
|
|
@ -714,7 +714,7 @@ export const componentTypes = [
|
|||
description: 'Select multiple values from options',
|
||||
defaultSize: {
|
||||
width: 200,
|
||||
height: 60
|
||||
height: 37
|
||||
},
|
||||
component: 'Multiselect',
|
||||
others: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue