@dloizides/ui-layout 1.38.0 → 1.38.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/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -579,9 +579,17 @@ var Modal = ({
|
|
|
579
579
|
)
|
|
580
580
|
] }) });
|
|
581
581
|
};
|
|
582
|
+
var CENTRED_ROW = { flexGrow: 1, justifyContent: "center" };
|
|
582
583
|
var PageOverlay = ({ children, pageSize, visible, onClose, testID }) => {
|
|
583
584
|
const { t } = useUi();
|
|
584
|
-
return /* @__PURE__ */ jsx(Modal, { accessibilityLabel: t(LAYOUT_I18N.pageEnlarge), size: "xl", testID, visible, onClose, children: /* @__PURE__ */ jsx(ScrollView, { horizontal: true, children: /* @__PURE__ */ jsx(
|
|
585
|
+
return /* @__PURE__ */ jsx(Modal, { accessibilityLabel: t(LAYOUT_I18N.pageEnlarge), size: "xl", testID, visible, onClose, children: /* @__PURE__ */ jsx(ScrollView, { horizontal: true, contentContainerStyle: CENTRED_ROW, children: /* @__PURE__ */ jsx(
|
|
586
|
+
View,
|
|
587
|
+
{
|
|
588
|
+
style: { width: pageSize.width, minWidth: pageSize.width, height: pageSize.height, flexShrink: 0 },
|
|
589
|
+
testID: `${testID}-page`,
|
|
590
|
+
children
|
|
591
|
+
}
|
|
592
|
+
) }) });
|
|
585
593
|
};
|
|
586
594
|
|
|
587
595
|
// src/PageFrame/utils/pageScale.ts
|