Skip to content

Commit

Permalink
fix(ProCard): change margin bottom for title
Browse files Browse the repository at this point in the history
  • Loading branch information
Carrotzpc committed Jul 11, 2024
1 parent 8ea9b87 commit 08440c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ProCard/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ export const ProCardHeader: React.FC<ProCardHeaderProps> = props => {
/>
</Flex>
)}
<Flex className={styles.titleBox} flex="1" vertical>
<Flex gap={4}>
<Flex flex="1" vertical>
<Flex className={styles.titleBox} gap={4}>
<div className={styles.title}>{title}</div>
{extra && (
<Flex
Expand Down
3 changes: 2 additions & 1 deletion src/ProCard/Header/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,22 @@ export const useStyles = createStyles(
`,
titleBox: css`
margin-right: 4px;
margin-bottom: ${token.marginXXS}px;
`,
title: css`
overflow: hidden;
display: inline-block;
flex: 1;
width: 100px;
margin-bottom: ${token.marginXS}px;
font-size: 16px;
font-weight: ${token.fontWeightStrong};
text-overflow: ellipsis;
white-space: nowrap;
`,
description: css`
margin-right: 4px;
&.${prefixCls}-typography {
margin-bottom: 0 !important;
font-size: 12px;
Expand Down

0 comments on commit 08440c1

Please sign in to comment.