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;"
>
(
-
+
),
};
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
;
+};