@butternutbox/pawprint-native 0.23.1 → 0.23.2
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/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/Button/Button.tsx +5 -1
package/package.json
CHANGED
|
@@ -88,7 +88,11 @@ const StyledTextWrapper = styled(View)<{
|
|
|
88
88
|
fullWidth?: boolean
|
|
89
89
|
}>(({ textOpacity, fullWidth }) => ({
|
|
90
90
|
opacity: textOpacity,
|
|
91
|
-
|
|
91
|
+
// `flexShrink` (not `flex: 1`) so the text wrapper can shrink to let long /
|
|
92
|
+
// translated copy wrap under the button's `minHeight`, WITHOUT growing to
|
|
93
|
+
// fill the row on short copy — which would push a `startIcon`/`endIcon` out
|
|
94
|
+
// to the button edge instead of sitting next to the centred text.
|
|
95
|
+
...(fullWidth ? { flexShrink: 1 } : {})
|
|
92
96
|
}))
|
|
93
97
|
|
|
94
98
|
const StyledSpinnerWrapper = styled(View)({
|