Skip to content

Commit

Permalink
fix(ProCard): change border radius and more icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Carrotzpc committed Jul 11, 2024
1 parent 6b61257 commit 6ab5a23
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ProCard/Card/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const useStyles = createStyles(({ css, token, prefixCls }) => {
color: ${token.colorText};
background: ${token.colorBgContainer};
border-radius: ${token.borderRadiusLG}px;
border-radius: ${token.borderRadius * 2}px;
box-shadow: ${token.boxShadowTertiary};
`,
bordered: css`
Expand Down
7 changes: 5 additions & 2 deletions src/ProCard/Header/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { MoreOutlined } from '@ant-design/icons';
import { Icon } from '@lobehub/ui';
import { Avatar, Button, Dropdown, Flex } from 'antd';
import type { AvatarProps, DropDownProps } from 'antd';
import { EllipsisVertical } from 'lucide-react';
import React from 'react';

import Typography from '@/Typography';
Expand Down Expand Up @@ -52,7 +53,9 @@ export const ProCardHeader: React.FC<ProCardHeaderProps> = props => {
onClick={e => e.stopPropagation()}
>
<Dropdown {...otherExtraProps}>
{extraChildren || <Button icon={<MoreOutlined />} size="small" type="text" />}
{extraChildren || (
<Button icon={<Icon icon={EllipsisVertical} />} size="small" type="text" />
)}
</Dropdown>
</Flex>
)}
Expand Down

0 comments on commit 6ab5a23

Please sign in to comment.