@bitrise/bitkit 12.20.3 → 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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit",
3
3
  "description": "Bitrise React component library",
4
- "version": "12.20.3",
4
+ "version": "12.20.4",
5
5
  "repository": "git@github.com:bitrise-io/bitkit.git",
6
6
  "main": "src/index.ts",
7
7
  "license": "UNLICENSED",
@@ -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="center" />;
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 wordBreak="break-word" flexGrow={actionPlacement === 'end' ? 1 : undefined} marginTop={marginTop}>
80
- {children}
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}