@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.js CHANGED
@@ -143,7 +143,7 @@ var Writer = class {
143
143
  alignSelf(child, stack) {
144
144
  const sized = child.style.width !== void 0 || child.style.maxWidth !== void 0;
145
145
  if (child.type === "Divider" || child.definition.sizing !== "shrink" && !sized) return void 0;
146
- const align = stack.style.alignItems;
146
+ const align = child.style.alignSelf ?? stack.style.alignItems;
147
147
  if (align === "stretch") return void 0;
148
148
  if (align) return flex(align);
149
149
  return { left: "flex-start", justify: "flex-start", center: "center", right: "flex-end" }[stack.text.textAlign];