-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🪟 🎨 Update page bottom margins to be consistent (#21673)
* Fix bottom of Sources and destinations settings page * Remove unused components * Remove H3 from titles * Fix layouts to have consistent page bottom margin * Set default spacing to 20px / xl * Remove extraneous padding from pages and let containers handle it * Check if running cloud app to add extra bottom spacing * Fix layout issues with connection Edit controls, move line rendering to the transformation cards * Set "saving" state in create controls to use the create button instead of having a different UI * Fix padding in DbtTransformationsCard
- Loading branch information
Showing
27 changed files
with
119 additions
and
173 deletions.
There are no files selected for viewing
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
11 changes: 10 additions & 1 deletion
11
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,14 +1,23 @@ | ||
import classNames from "classnames"; | ||
import { PropsWithChildren } from "react"; | ||
|
||
import { isCloudApp } from "utils/app"; | ||
|
||
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> | ||
<div | ||
className={classNames(styles.container, { | ||
[styles.big]: big, | ||
[styles.cloud]: isCloudApp(), | ||
})} | ||
> | ||
{children} | ||
</div> | ||
); | ||
|
||
export default FormPageContent; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { H3, H5 } from "./Titles"; | ||
export { H5 } from "./Titles"; |
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
9 changes: 8 additions & 1 deletion
9
...ebapp/src/components/connection/ConnectionEditFormCard/ConnectionEditFormCard.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 |
---|---|---|
@@ -1,5 +1,12 @@ | ||
@use "scss/colors"; | ||
@use "scss/variables"; | ||
|
||
.formCard { | ||
padding: 22px 27px variables.$spacing-xl 24px; | ||
padding: variables.$spacing-xl; | ||
} | ||
|
||
.editControls { | ||
border-top: variables.$border-thin solid colors.$grey-100; | ||
margin: 0 -#{variables.$spacing-xl}; | ||
padding: variables.$spacing-xl variables.$spacing-xl 0; | ||
} |
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
5 changes: 5 additions & 0 deletions
5
airbyte-webapp/src/components/connection/ConnectionForm/CreateControls.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,5 @@ | ||
@use "scss/variables"; | ||
|
||
.container { | ||
margin-top: variables.$spacing-md; | ||
} |
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
28 changes: 2 additions & 26 deletions
28
airbyte-webapp/src/components/connection/ConnectionForm/EditControls.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 |
---|---|---|
@@ -1,29 +1,5 @@ | ||
@use "scss/colors"; | ||
@use "scss/variables"; | ||
|
||
.content { | ||
display: flex; | ||
justify-content: flex-end; | ||
align-items: center; | ||
flex-direction: row; | ||
margin-top: variables.$spacing-lg; | ||
gap: variables.$spacing-lg; | ||
padding: variables.$spacing-sm; | ||
} | ||
|
||
.controlButton { | ||
margin-left: variables.$spacing-md; | ||
} | ||
|
||
// currently only implemented on transformation view form card, margins are specific to that implementation | ||
// todo: standardize the margin sizes here | ||
.line { | ||
min-width: 100%; | ||
height: variables.$border-thin; | ||
background: colors.$grey-100; | ||
margin: variables.$spacing-lg -27px 0 -24px; | ||
} | ||
|
||
.buttonsContainer { | ||
display: flex; | ||
.container { | ||
margin-top: variables.$spacing-md; | ||
} |
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
3 changes: 0 additions & 3 deletions
3
airbyte-webapp/src/components/ui/CollapsibleCard/CollapsibleCard.module.scss
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
.content { | ||
display: flex; | ||
flex-direction: row; | ||
padding-bottom: variables.$spacing-lg; | ||
} | ||
|
||
.mainView { | ||
|
3 changes: 0 additions & 3 deletions
3
...-webapp/src/pages/SettingsPage/pages/ConnectorsPage/components/ConnectorsView.module.scss
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.