Skip to content

Commit e4f4718

Browse files
authored
Fix streams table from not flushing (#21675)
1 parent e2139d9 commit e4f4718

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

airbyte-webapp/src/components/connection/ConnectionForm/ConnectionFormFields.module.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,3 @@
3535
// used to control svg size
3636
font-size: 14px;
3737
}
38-
39-
.flush {
40-
padding: 0;
41-
gap: 0;
42-
}

airbyte-webapp/src/components/connection/ConnectionForm/ConnectionFormFields.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export const ConnectionFormFields: React.FC<ConnectionFormFieldsProps> = ({ valu
127127
</Field>
128128
</Section>
129129
)}
130-
<Section className={styles.flush}>
130+
<Section flush>
131131
<Field
132132
name="syncCatalog.streams"
133133
component={SyncCatalogField}

airbyte-webapp/src/components/connection/ConnectionForm/Section.module.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,9 @@
1010
&:not(:last-child) {
1111
box-shadow: 0 1px 0 rgba(139, 139, 160, 25%);
1212
}
13+
14+
&.flush {
15+
padding: 0;
16+
gap: 0;
17+
}
1318
}

airbyte-webapp/src/components/connection/ConnectionForm/Section.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ import styles from "./Section.module.scss";
77

88
interface SectionProps {
99
title?: React.ReactNode;
10+
flush?: boolean;
1011
className?: string;
1112
}
1213

13-
export const Section: React.FC<React.PropsWithChildren<SectionProps>> = ({ title, children, className }) => {
14+
export const Section: React.FC<React.PropsWithChildren<SectionProps>> = ({ title, flush, children, className }) => {
1415
return (
1516
<Card>
16-
<div className={classNames(styles.section, className)}>
17+
<div className={classNames(styles.section, { [styles.flush]: flush }, className)}>
1718
{title && (
1819
<Heading as="h2" size="sm">
1920
{title}

0 commit comments

Comments
 (0)