Skip to content

Commit

Permalink
Fix streams table from not flushing (#21675)
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundito authored Jan 24, 2023
1 parent e2139d9 commit e4f4718
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,3 @@
// used to control svg size
font-size: 14px;
}

.flush {
padding: 0;
gap: 0;
}
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export const ConnectionFormFields: React.FC<ConnectionFormFieldsProps> = ({ valu
</Field>
</Section>
)}
<Section className={styles.flush}>
<Section flush>
<Field
name="syncCatalog.streams"
component={SyncCatalogField}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,9 @@
&:not(:last-child) {
box-shadow: 0 1px 0 rgba(139, 139, 160, 25%);
}

&.flush {
padding: 0;
gap: 0;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ import styles from "./Section.module.scss";

interface SectionProps {
title?: React.ReactNode;
flush?: boolean;
className?: string;
}

export const Section: React.FC<React.PropsWithChildren<SectionProps>> = ({ title, children, className }) => {
export const Section: React.FC<React.PropsWithChildren<SectionProps>> = ({ title, flush, children, className }) => {
return (
<Card>
<div className={classNames(styles.section, className)}>
<div className={classNames(styles.section, { [styles.flush]: flush }, className)}>
{title && (
<Heading as="h2" size="sm">
{title}
Expand Down

0 comments on commit e4f4718

Please sign in to comment.