diff --git a/docs/index.tsx b/docs/index.tsx
index 68cf514c..cad28f38 100644
--- a/docs/index.tsx
+++ b/docs/index.tsx
@@ -35,9 +35,12 @@ export default () => (
export default () => {
const theme = useTheme();
return (
-
+
- 🤯 Start building your AIGC app now
+ Start building your AIGC app now
{'$ bun add @lobehub/ui'}
The Lobe UI components are developed based on{' '}
@@ -52,7 +55,11 @@ export default () => {
as the default css-in-js styling solution.
-
+
{example}
diff --git a/src/Hero/index.tsx b/src/Hero/index.tsx
index 5df2e3e1..5574431d 100644
--- a/src/Hero/index.tsx
+++ b/src/Hero/index.tsx
@@ -64,7 +64,7 @@ const Hero = memo(({ title, description, actions, Link }) => {
const ButtonGroups = useCallback(
() =>
Boolean(actions?.length) && (
-
+
{actions!.map(({ text, link, openExternal, icon, type }, index) => {
// @ts-ignore
const ButtonIcon = icon === 'Github' ? : icon;
diff --git a/src/List/ListItem/index.tsx b/src/List/ListItem/index.tsx
index 8d1f0933..ee712881 100644
--- a/src/List/ListItem/index.tsx
+++ b/src/List/ListItem/index.tsx
@@ -1,5 +1,6 @@
'use client';
+import { Typography } from 'antd';
import { Loader2, MessageSquare } from 'lucide-react';
import { ReactNode, forwardRef } from 'react';
import { Flexbox, FlexboxProps } from 'react-layout-kit';
@@ -9,6 +10,8 @@ import Icon from '@/Icon';
import { useStyles } from './style';
import { getChatItemTime } from './time';
+const { Title, Paragraph } = Typography;
+
export interface ListItemProps extends Omit {
actions?: ReactNode;
active?: boolean;
@@ -74,14 +77,20 @@ const ListItem = forwardRef(
)}
- {avatar ?? }
-
-
- {title}
+
+ {avatar ?? }
+
+
+ {title}
+
+ {description && (
+
+ {description}
+
+ )}
+ {addon}
- {description && {description}
}
- {addon}
{loading ? (
@@ -105,7 +114,7 @@ const ListItem = forwardRef(
{date && (
{getChatItemTime(date)}
diff --git a/src/List/ListItem/style.ts b/src/List/ListItem/style.ts
index 38bdda1e..8499ce4c 100644
--- a/src/List/ListItem/style.ts
+++ b/src/List/ListItem/style.ts
@@ -42,15 +42,12 @@ export const useStyles = createStyles(({ css, token }) => {
align-self: center;
`,
desc: css`
- overflow: hidden;
-
width: 100%;
+ margin: 0 !important;
font-size: 12px;
- line-height: 1;
+ line-height: 1.2 !important;
color: ${token.colorTextDescription};
- text-overflow: ellipsis;
- white-space: nowrap;
`,
pin: css`
@@ -64,15 +61,13 @@ export const useStyles = createStyles(({ css, token }) => {
`,
title: css`
- overflow: hidden;
-
width: 100%;
+ margin: 0 !important;
- font-size: 16px;
- line-height: 1;
+ font-size: 14px !important;
+ font-weight: 500 !important;
+ line-height: 1.2 !important;
color: ${token.colorText};
- text-overflow: ellipsis;
- white-space: nowrap;
`,
triangle: css`
width: 10px;
diff --git a/src/List/demos/index.tsx b/src/List/demos/index.tsx
index c162d428..850a75c3 100644
--- a/src/List/demos/index.tsx
+++ b/src/List/demos/index.tsx
@@ -10,6 +10,7 @@ export default () => {
actions: ,
active: false,
avatar: ,
+ date: Date.now(),
description: 'Description 1',
pin: true,
showAction: true,
@@ -19,6 +20,7 @@ export default () => {
actions: ,
active: false,
avatar: ,
+ date: Date.now(),
description: 'Description 2',
title: 'Item 2',
},