@bitrise/bitkit 11.0.0-alpha-migrated.1 → 11.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -11,8 +11,8 @@ const BreadcrumbTheme: SystemStyleObject = {
|
|
|
11
11
|
item: {
|
|
12
12
|
_last: {
|
|
13
13
|
minWidth: 0,
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
|
|
15
|
+
'.breadcrumbLinkText': {
|
|
16
16
|
overflow: 'hidden',
|
|
17
17
|
textOverflow: 'ellipsis',
|
|
18
18
|
},
|
|
@@ -23,6 +23,7 @@ const BreadcrumbTheme: SystemStyleObject = {
|
|
|
23
23
|
alignItems: 'center',
|
|
24
24
|
gap: '8',
|
|
25
25
|
whiteSpace: 'nowrap',
|
|
26
|
+
minWidth: 0,
|
|
26
27
|
},
|
|
27
28
|
separator: {
|
|
28
29
|
display: 'flex',
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
} from '@chakra-ui/react';
|
|
6
6
|
import Avatar from '../Avatar/Avatar';
|
|
7
7
|
import { useResponsive } from '../../hooks';
|
|
8
|
+
import Box from '../Box/Box';
|
|
8
9
|
|
|
9
10
|
export interface BreadcrumbLinkProps extends ChakraBreadcrumbLinkProps {
|
|
10
11
|
avatarName?: string;
|
|
@@ -25,7 +26,9 @@ const BreadcrumbLink = forwardRef<BreadcrumbLinkProps, 'a'>((props, ref) => {
|
|
|
25
26
|
{!isMobile && (avatarName || avatarUrl) && (
|
|
26
27
|
<Avatar name={avatarName || children?.toString()} src={avatarUrl} borderRadius="4" />
|
|
27
28
|
)}
|
|
28
|
-
|
|
29
|
+
<Box as="span" className="breadcrumbLinkText">
|
|
30
|
+
{children}
|
|
31
|
+
</Box>
|
|
29
32
|
</ChakraBreadcrumbLink>
|
|
30
33
|
);
|
|
31
34
|
});
|