Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

fix categories spacing

Oleg Isonen1a9d5b4872ad
diff --git a/apps/designer/app/designer/shared/fonts-manager/fonts-manager.tsx b/apps/designer/app/designer/shared/fonts-manager/fonts-manager.tsx
index 26581b46e4..2d1d2266b5 100644
--- a/apps/designer/app/designer/shared/fonts-manager/fonts-manager.tsx
+++ b/apps/designer/app/designer/shared/fonts-manager/fonts-manager.tsx
@@ -1,11 +1,12 @@
import {
Flex,
- Separator,
+ Separator as SeparatorPrimitive,
SearchField,
List,
ListItem,
useList,
findNextListIndex,
+ styled,
} from "@webstudio-is/design-system";
import { AssetUpload, useAssets } from "~/designer/shared/assets";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
@@ -135,6 +136,11 @@ const useLogic = ({
};
};
+const Separator = styled(SeparatorPrimitive, {
+ marginTop: "$1",
+ marginBottom: "$2",
+});
+
type FontsManagerProps = {
value: string;
onChange: (value: string) => void;
@@ -179,7 +185,7 @@ export const FontsManager = ({ value, onChange }: FontsManagerProps) => {
<AssetUpload type="font" />
<SearchField {...searchProps} autoFocus placeholder="Search" />
</Flex>
- <Separator css={{ my: "$1" }} />
+ <Separator />
{groupedItems.length === 0 && <NotFound />}
<Flex
css={{
@@ -202,7 +208,7 @@ export const FontsManager = ({ value, onChange }: FontsManagerProps) => {
{uploadedItems.map(renderItem)}
{systemItems.length !== 0 && (
<>
- {uploadedItems.length !== 0 && <Separator css={{ my: "$1" }} />}
+ {uploadedItems.length !== 0 && <Separator />}
<ListItem state="disabled">{"System"}</ListItem>
</>
)}