@particle-academy/fancy-cms-ui 0.0.1-dev.10 → 0.0.1-dev.11
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/editor.cjs +5 -1
- package/dist/editor.cjs.map +1 -1
- package/dist/editor.js +5 -1
- package/dist/editor.js.map +1 -1
- package/package.json +1 -1
package/dist/editor.js
CHANGED
|
@@ -919,7 +919,11 @@ function EditablePage({
|
|
|
919
919
|
else ed.select(null);
|
|
920
920
|
};
|
|
921
921
|
const page = /* @__PURE__ */ jsx("div", { ref: pageRef, onClickCapture, onContextMenu: onContextMenuSelect, children: /* @__PURE__ */ jsx(CmsPage, { doc: ed.state.doc, registry }) });
|
|
922
|
-
const pageShell = pinned ? /* @__PURE__ */ jsx("div", { ref: spacerRef, style: { height: `${Math.max(1, frames) * 100}vh` }, children: /* @__PURE__ */ jsx("div", { style: { position: "sticky", top: 0, height: "100vh", overflow: "hidden" }, children: page }) }) :
|
|
922
|
+
const pageShell = pinned ? /* @__PURE__ */ jsx("div", { ref: spacerRef, style: { height: `${Math.max(1, frames) * 100}vh` }, children: /* @__PURE__ */ jsx("div", { style: { position: "sticky", top: 0, height: "100vh", overflow: "hidden" }, children: page }) }) : frames > 1 ? (
|
|
923
|
+
// Normal flow, but "expanded" — extra scroll length below the content so a
|
|
924
|
+
// page can be made longer than its content (the + Frame control).
|
|
925
|
+
/* @__PURE__ */ jsx("div", { style: { minHeight: `${frames * 100}vh` }, children: page })
|
|
926
|
+
) : page;
|
|
923
927
|
return /* @__PURE__ */ jsxs("div", { style: { position: "relative" }, children: [
|
|
924
928
|
editing ? /* @__PURE__ */ jsxs(ContextMenu, { children: [
|
|
925
929
|
/* @__PURE__ */ jsx(ContextMenu.Trigger, { children: pageShell }),
|