@artsy/palette-mobile 11.0.40 → 11.0.41

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/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # v11.0.41 (Thu Jun 15 2023)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - fix(screen): fix centering on non-animated title [#115](https://github.com/artsy/palette-mobile/pull/115) ([@damassi](https://github.com/damassi))
6
+
7
+ #### Authors: 1
8
+
9
+ - Christopher Pappas ([@damassi](https://github.com/damassi))
10
+
11
+ ---
12
+
1
13
  # v11.0.40 (Fri Jun 09 2023)
2
14
 
3
15
  #### 🐛 Bug Fix
@@ -53,7 +53,7 @@ const Header = ({ animated = false, hideLeftElements, hideRightElements, hideTit
53
53
  return null;
54
54
  }
55
55
  if (!animated) {
56
- return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { flex: 1, justifySelf: "stretch", ...titleProps, children: (0, jsx_runtime_1.jsx)(Text_1.Text, { variant: "sm-display", numberOfLines: 1, children: title }) }));
56
+ return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { flex: 1, flexDirection: "row", children: (0, jsx_runtime_1.jsx)(Flex_1.Flex, { alignItems: "center", width: "100%", ...titleProps, children: (0, jsx_runtime_1.jsx)(Text_1.Text, { variant: "sm-display", numberOfLines: 1, children: title }) }) }));
57
57
  }
58
58
  // Show / hide the title to avoid rerenders, which retrigger the animation
59
59
  const display = scrollY < constants_1.NAVBAR_HEIGHT ? "none" : "flex";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/palette-mobile",
3
- "version": "11.0.40",
3
+ "version": "11.0.41",
4
4
  "description": "Artsy's design system for React Native",
5
5
  "scripts": {
6
6
  "android": "react-native run-android",