diff --git a/src/features/preferences/__snapshots__/closing-preferences.test.tsx.snap b/src/features/preferences/__snapshots__/closing-preferences.test.tsx.snap index f19b97741b..3debc25802 100644 --- a/src/features/preferences/__snapshots__/closing-preferences.test.tsx.snap +++ b/src/features/preferences/__snapshots__/closing-preferences.test.tsx.snap @@ -169,7 +169,7 @@ exports[`preferences - closing-preferences given accessing preferences directly style="padding: 0px 10px;" >
@@ -280,7 +280,7 @@ exports[`preferences - closing-preferences given accessing preferences directly
@@ -1449,7 +1449,7 @@ exports[`preferences - closing-preferences given already in a page and then navi style="padding: 0px 10px;" >
@@ -1560,7 +1560,7 @@ exports[`preferences - closing-preferences given already in a page and then navi
diff --git a/src/features/preferences/__snapshots__/extension-adding-preference-tabs.test.tsx.snap b/src/features/preferences/__snapshots__/extension-adding-preference-tabs.test.tsx.snap index 0db82eaa32..b54aded228 100644 --- a/src/features/preferences/__snapshots__/extension-adding-preference-tabs.test.tsx.snap +++ b/src/features/preferences/__snapshots__/extension-adding-preference-tabs.test.tsx.snap @@ -182,7 +182,7 @@ exports[`preferences: extension adding preference tabs given in preferences, whe style="padding: 0px 10px;" >
@@ -293,7 +293,7 @@ exports[`preferences: extension adding preference tabs given in preferences, whe
@@ -275,7 +275,7 @@ exports[`preferences - hiding-of-empty-branches, given in preferences page given
@@ -998,7 +998,7 @@ exports[`preferences - hiding-of-empty-branches, given in preferences page given
@@ -1733,7 +1733,7 @@ exports[`preferences - hiding-of-empty-branches, given in preferences page given
@@ -215,7 +215,7 @@ exports[`preferences - navigation to application preferences given in some child
@@ -616,7 +616,7 @@ exports[`preferences - navigation to application preferences given in some child
@@ -1313,7 +1313,7 @@ exports[`preferences - navigation to application preferences given in some child
@@ -268,7 +268,7 @@ exports[`preferences - navigation to editor preferences given in preferences, wh
diff --git a/src/features/preferences/__snapshots__/navigation-to-proxy-preferences.test.ts.snap b/src/features/preferences/__snapshots__/navigation-to-proxy-preferences.test.ts.snap index 1ce05f47b9..1c44934841 100644 --- a/src/features/preferences/__snapshots__/navigation-to-proxy-preferences.test.ts.snap +++ b/src/features/preferences/__snapshots__/navigation-to-proxy-preferences.test.ts.snap @@ -157,7 +157,7 @@ exports[`preferences - navigation to proxy preferences given in preferences, whe style="padding: 0px 10px;" >
@@ -268,7 +268,7 @@ exports[`preferences - navigation to proxy preferences given in preferences, whe
@@ -911,7 +911,7 @@ exports[`preferences - navigation to proxy preferences given in preferences, whe
@@ -488,7 +488,7 @@ exports[`preferences - navigation to telemetry preferences given in preferences, style="padding: 0px 10px;" >
@@ -599,7 +599,7 @@ exports[`preferences - navigation to telemetry preferences given in preferences,
@@ -1307,7 +1307,7 @@ exports[`preferences - navigation to telemetry preferences given in preferences,
@@ -2213,7 +2213,7 @@ exports[`preferences - navigation to telemetry preferences given no URL for Sent style="padding: 0px 10px;" >
diff --git a/src/features/preferences/__snapshots__/navigation-to-terminal-preferences.test.ts.snap b/src/features/preferences/__snapshots__/navigation-to-terminal-preferences.test.ts.snap index 70dd5edfe8..8ad4a3ea09 100644 --- a/src/features/preferences/__snapshots__/navigation-to-terminal-preferences.test.ts.snap +++ b/src/features/preferences/__snapshots__/navigation-to-terminal-preferences.test.ts.snap @@ -157,7 +157,7 @@ exports[`preferences - navigation to terminal preferences given in preferences, style="padding: 0px 10px;" >
@@ -268,7 +268,7 @@ exports[`preferences - navigation to terminal preferences given in preferences,
diff --git a/src/features/preferences/__snapshots__/navigation-using-application-menu.test.ts.snap b/src/features/preferences/__snapshots__/navigation-using-application-menu.test.ts.snap index 806c8df00b..c80cd4abe3 100644 --- a/src/features/preferences/__snapshots__/navigation-using-application-menu.test.ts.snap +++ b/src/features/preferences/__snapshots__/navigation-using-application-menu.test.ts.snap @@ -375,7 +375,7 @@ exports[`preferences - navigation using application menu when navigating to pref style="padding: 0px 10px;" >
@@ -486,7 +486,7 @@ exports[`preferences - navigation using application menu when navigating to pref
@@ -489,7 +489,7 @@ exports[`show-about-using-tray when navigating using tray renders 1`] = `
(
- +
), }; diff --git a/src/features/preferences/renderer/preference-items/proxy/proxy-preference-page.injectable.tsx b/src/features/preferences/renderer/preference-items/proxy/proxy-preference-page.injectable.tsx index 3478970396..34a698fd5c 100644 --- a/src/features/preferences/renderer/preference-items/proxy/proxy-preference-page.injectable.tsx +++ b/src/features/preferences/renderer/preference-items/proxy/proxy-preference-page.injectable.tsx @@ -23,7 +23,7 @@ const proxyPreferencePageInjectable = getInjectable({ id: "proxy-page", parentId: "proxy-tab", Component: ProxyPage, - childSeparator: () => , + childSeparator: () => , }), injectionToken: preferenceItemInjectionToken, diff --git a/src/renderer/components/horizontal-line/horizontal-line.module.scss b/src/renderer/components/horizontal-line/horizontal-line.module.scss index 3d6f09dbfc..91dc5106d3 100644 --- a/src/renderer/components/horizontal-line/horizontal-line.module.scss +++ b/src/renderer/components/horizontal-line/horizontal-line.module.scss @@ -4,14 +4,22 @@ */ .HorizontalLine { - margin-top: 40px; - margin-bottom: 40px; - height: 1px; border-top: thin solid var(--hrColor); } -.Small { - margin-top: 20px; - margin-bottom: 20px; +@mixin horizontalLineSize( + $sizeName, + $size +) { + .size-#{$sizeName} { + margin-top: $size; + margin-bottom: $size; + } } + +$baseline: 8px; + +@include horizontalLineSize('sm', 2 * $baseline); +@include horizontalLineSize('md', 3 * $baseline); +@include horizontalLineSize('xl', 5 * $baseline); diff --git a/src/renderer/components/horizontal-line/horizontal-line.tsx b/src/renderer/components/horizontal-line/horizontal-line.tsx index fba1e6dfdc..0e9e9accf3 100644 --- a/src/renderer/components/horizontal-line/horizontal-line.tsx +++ b/src/renderer/components/horizontal-line/horizontal-line.tsx @@ -6,11 +6,12 @@ import React from "react"; import styles from "./horizontal-line.module.scss"; import { cssNames } from "../../utils"; -export const HorizontalLine = ({ small } = { small: false }) => ( -
-); +interface HorizontalLineProps { + size: "sm" | "md" | "xl"; +} + +export const HorizontalLine = ({ size }: HorizontalLineProps = { size: "xl" }) => { + const classNames = cssNames(styles.HorizontalLine, styles[`size-${size}`]); + + return
; +};