@bitrise/bitkit 12.20.2 → 12.20.4
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
|
@@ -66,7 +66,7 @@ const Notification = forwardRef<NotificationProps, 'div'>((props, ref) => {
|
|
|
66
66
|
let actionButton;
|
|
67
67
|
const actionPlacement = action?.placement ?? 'end';
|
|
68
68
|
if (action) {
|
|
69
|
-
actionButton = <NotificationAction marginRight="12" {...action} alignSelf=
|
|
69
|
+
actionButton = <NotificationAction marginRight="12" {...action} alignSelf={['start', 'center']} />;
|
|
70
70
|
}
|
|
71
71
|
const actionContext = useMemo(() => ({ colorScheme }), [colorScheme]);
|
|
72
72
|
// This is needed when the actionButton is rendered with a one-liner text.
|
|
@@ -76,10 +76,12 @@ const Notification = forwardRef<NotificationProps, 'div'>((props, ref) => {
|
|
|
76
76
|
<ChakraAlert ref={ref} {...rest} colorScheme={colorScheme}>
|
|
77
77
|
<ActionContext.Provider value={actionContext}>
|
|
78
78
|
{showIcon && cloneElement(icon, { flexShrink: 0, marginTop })}
|
|
79
|
-
<Box
|
|
80
|
-
{
|
|
79
|
+
<Box display="flex" justifyContent="start" flexDirection={['column', 'row']} gap={16} flexGrow={1}>
|
|
80
|
+
<Box wordBreak="break-word" flexGrow={actionPlacement === 'end' ? 1 : undefined} marginTop={marginTop}>
|
|
81
|
+
{children}
|
|
82
|
+
</Box>
|
|
83
|
+
{actionButton}
|
|
81
84
|
</Box>
|
|
82
|
-
{actionButton}
|
|
83
85
|
{onClose && (
|
|
84
86
|
<CloseButton
|
|
85
87
|
flexShrink={0}
|
|
@@ -13,7 +13,7 @@ const ClickableRow = (props: ClickableRowProps) => {
|
|
|
13
13
|
const { children, label, linkProps, ...rest } = props;
|
|
14
14
|
|
|
15
15
|
return (
|
|
16
|
-
<LinkBox as={Tr} {...rest}>
|
|
16
|
+
<LinkBox as={Tr} transform="scale(1)" {...rest}>
|
|
17
17
|
<Td>
|
|
18
18
|
<LinkOverlay as={Link} {...linkProps}>
|
|
19
19
|
{label}
|