@ohhwells/bridge 0.1.84-next.246 → 0.1.84-next.249
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/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -556,9 +556,6 @@ function alignSubjectOf(el) {
|
|
|
556
556
|
const button = el.closest('[data-ohw-role="button"]');
|
|
557
557
|
return button?.parentElement ?? el;
|
|
558
558
|
}
|
|
559
|
-
function horizontalFlexProp(el) {
|
|
560
|
-
return getComputedStyle(el).flexDirection.startsWith("column") ? "align-items" : "justify-content";
|
|
561
|
-
}
|
|
562
559
|
function applyStylesToDom(store) {
|
|
563
560
|
ensureStyleSheet();
|
|
564
561
|
clearSectionAttrs(document);
|
|
@@ -606,11 +603,14 @@ function applyStylesToDom(store) {
|
|
|
606
603
|
}
|
|
607
604
|
if (override.align !== void 0) {
|
|
608
605
|
const subject = alignSubjectOf(el);
|
|
609
|
-
const flexProp = horizontalFlexProp(subject);
|
|
610
606
|
saveInline(subject, "text-align");
|
|
611
|
-
saveInline(subject,
|
|
607
|
+
saveInline(subject, "justify-content");
|
|
612
608
|
subject.style.setProperty("text-align", override.align, "important");
|
|
613
|
-
subject.style.setProperty(
|
|
609
|
+
subject.style.setProperty(
|
|
610
|
+
"justify-content",
|
|
611
|
+
ALIGN_JUSTIFY[override.align] ?? "flex-start",
|
|
612
|
+
"important"
|
|
613
|
+
);
|
|
614
614
|
subject.setAttribute(NODE_WROTE_ATTR, "");
|
|
615
615
|
}
|
|
616
616
|
if (override.buttonBackground !== void 0 || override.buttonText !== void 0) {
|