Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

💄 style(settings): fix fallback font row inline padding (#19482)

Innei280ffa455173
diff --git a/src/features/Settings/appearance/features/Font/FallbackFontList.tsx b/src/features/Settings/appearance/features/Font/FallbackFontList.tsx
index 56e27cf7b57..6fd927f223f 100644
--- a/src/features/Settings/appearance/features/Font/FallbackFontList.tsx
+++ b/src/features/Settings/appearance/features/Font/FallbackFontList.tsx
@@ -2,6 +2,7 @@
import { Flexbox, SortableList } from '@lobehub/ui';
import { ActionIcon, Button, Select, type SelectOption, Text } from '@lobehub/ui/base-ui';
+import { createStaticStyles } from 'antd-style';
import { PlusIcon, XIcon } from 'lucide-react';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
@@ -10,6 +11,11 @@ import { MAX_FALLBACK_FONTS } from './fontStack';
import { useFontFallbackStack } from './useFontFallbackStack';
const width = { width: 320 };
+const styles = createStaticStyles(({ css, cssVar }) => ({
+ item: css`
+ padding-inline: ${cssVar.paddingSM} ${cssVar.paddingXXS};
+ `,
+}));
interface FallbackFontListProps {
ariaLabel: string;
@@ -44,6 +50,7 @@ const FallbackFontList = ({
<SortableList.Item
horizontal
align={'center'}
+ className={styles.item}
gap={4}
id={item.id}
justify={'space-between'}