diff --git a/airbyte-webapp/src/components/GroupControls/GroupControls.tsx b/airbyte-webapp/src/components/GroupControls/GroupControls.tsx index ccf6d7714c14d1..e2007158cea894 100644 --- a/airbyte-webapp/src/components/GroupControls/GroupControls.tsx +++ b/airbyte-webapp/src/components/GroupControls/GroupControls.tsx @@ -3,17 +3,13 @@ import styled from "styled-components"; import { Label, TextWithHTML } from "components"; -const GroupTitle = styled.div` +const GroupTitle = styled.div<{ $fullWidthTitle: boolean }>` margin-top: -23px; background: ${({ theme }) => theme.whiteColor}; padding: 0 5px; display: inline-block; vertical-align: middle; - - & > div { - min-width: 180px; - display: inline-block; - } + width: ${({ $fullWidthTitle }) => ($fullWidthTitle ? "100%" : "auto")}; `; const FormGroup = styled.div` @@ -28,12 +24,19 @@ interface GroupControlsProps { title: React.ReactNode; description?: string; name?: string; + fullWidthTitle?: boolean; } -const GroupControls: React.FC = ({ title, description, children, name }) => { +const GroupControls: React.FC = ({ + title, + description, + children, + name, + fullWidthTitle = false, +}) => { return ( - {title} + {title} {description && diff --git a/airbyte-webapp/src/views/Connector/ServiceForm/components/Sections/ConditionSection.module.scss b/airbyte-webapp/src/views/Connector/ServiceForm/components/Sections/ConditionSection.module.scss new file mode 100644 index 00000000000000..e8b85e49c9092b --- /dev/null +++ b/airbyte-webapp/src/views/Connector/ServiceForm/components/Sections/ConditionSection.module.scss @@ -0,0 +1,7 @@ +.sectionTitle { + display: flex; +} + +.sectionTitleDropdown { + flex: 1 1 auto; +} diff --git a/airbyte-webapp/src/views/Connector/ServiceForm/components/Sections/ConditionSection.tsx b/airbyte-webapp/src/views/Connector/ServiceForm/components/Sections/ConditionSection.tsx index fed6d6e17b46ff..cc8ed2460fbab7 100644 --- a/airbyte-webapp/src/views/Connector/ServiceForm/components/Sections/ConditionSection.tsx +++ b/airbyte-webapp/src/views/Connector/ServiceForm/components/Sections/ConditionSection.tsx @@ -11,6 +11,7 @@ import { isDefined } from "utils/common"; import { useServiceForm } from "../../serviceFormContext"; import { ServiceFormValues } from "../../types"; +import styles from "./ConditionSection.module.scss"; import { FormSection } from "./FormSection"; const GroupLabel = styled(Label)` @@ -78,17 +79,19 @@ export const ConditionSection: React.FC = ({ formField, p +
{label ? {label}: : null} - +
} >