@hyper-elements/react 0.3.0 → 0.3.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/dist/image.cjs CHANGED
@@ -149,7 +149,7 @@ var Writer = class {
149
149
  alignSelf(child, stack) {
150
150
  const sized = child.style.width !== void 0 || child.style.maxWidth !== void 0;
151
151
  if (child.type === "Divider" || child.definition.sizing !== "shrink" && !sized) return void 0;
152
- const align = stack.style.alignItems;
152
+ const align = child.style.alignSelf ?? stack.style.alignItems;
153
153
  if (align === "stretch") return void 0;
154
154
  if (align) return flex(align);
155
155
  return { left: "flex-start", justify: "flex-start", center: "center", right: "flex-end" }[stack.text.textAlign];