-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update create connection page to full width, and fix trivial UI issues (
#21352) * Update big prop in FormPageContent to expand to full width * Fix Normalization & Tranformation heading size * Update FormPageContent to scss and add bottom padding * Remove max-width from ConnectionReplicationPage
- Loading branch information
Showing
4 changed files
with
23 additions
and
9 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
airbyte-webapp/src/components/ConnectorBlocks/FormPageContent.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@use "scss/variables"; | ||
|
||
.container { | ||
margin: 13px auto 0; | ||
padding-bottom: variables.$spacing-page-bottom; | ||
|
||
&:not(.big) { | ||
width: 80%; | ||
max-width: 813px; | ||
} | ||
} |
17 changes: 11 additions & 6 deletions
17
airbyte-webapp/src/components/ConnectorBlocks/FormPageContent.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
import styled from "styled-components"; | ||
import classNames from "classnames"; | ||
import { PropsWithChildren } from "react"; | ||
|
||
const FormPageContent = styled.div<{ big?: boolean }>` | ||
width: 80%; | ||
max-width: ${({ big }) => (big ? 1279 : 813)}px; | ||
margin: 13px auto; | ||
`; | ||
import styles from "./FormPageContent.module.scss"; | ||
|
||
interface FormPageContentProps { | ||
big?: boolean; | ||
} | ||
|
||
const FormPageContent: React.FC<PropsWithChildren<FormPageContentProps>> = ({ big, children }) => ( | ||
<div className={classNames(styles.container, { [styles.big]: big })}>{children}</div> | ||
); | ||
|
||
export default FormPageContent; |
2 changes: 0 additions & 2 deletions
2
...app/src/pages/connections/ConnectionReplicationPage/ConnectionReplicationPage.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters