diff --git a/src/components/QueryRow/index.tsx b/src/components/QueryRow/index.tsx index c4b84bd8..b2e1ae75 100644 --- a/src/components/QueryRow/index.tsx +++ b/src/components/QueryRow/index.tsx @@ -56,69 +56,64 @@ const QueryRow = ({ id, condition, index, update, remove, propertyOptions, schem }, [value]); return ( -
-
- setProperty(e.target.value)} - /> - setOperator(e.target.value)} - /> -
-
- {schema[id].fields[property].mysql_type === 'date' ? ( -
- - { +
+ setProperty(e.target.value)} + className={"ds-l-md-col--5 ds-l-lg-col--4 ds-l-sm-col--8 ds-l-col--12 ds-u-padding--0 ds-u-md-padding-right--2 ds-u-margin-bottom--0 ds-u-md-margin-bottom--2"} + /> + setOperator(e.target.value)} + className={"ds-l-sm-col--3 ds-l-md-col--2 ds-l-col--12 ds-u-padding--0 ds-u-md-padding-right--2 ds-u-margin-bottom--0 ds-u-md-margin-bottom--2"} + /> + {schema[id].fields[property].mysql_type === 'date' ? ( +
+ + { + if(date) { setStartDate(date); setValue(date.toJSON().slice(0, 10)); - }} - showMonthDropdown - showYearDropdown - dropdownMode="select" - className="ds-c-field" - withPortal - /> -
- ) : ( - setValue(e.target.value)} + } + }} + showMonthDropdown + showYearDropdown + dropdownMode="select" + className={"ds-c-field"} + withPortal /> - )} - - -
+
+ ) : ( + setValue(e.target.value)} + className={"ds-l-md-col--5 ds-l-lg-col--4 ds-l-sm-col--8 ds-l-col--12 ds-u-padding--0 ds-u-sm-padding-right--2 ds-u-md-padding-right--0 ds-u-lg-padding-right--2 ds-u-margin-bottom--2"} + /> + )} +
); };