@jvs-milkdown/crepe 1.2.30 → 1.2.31
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/lib/cjs/index.js +5 -5
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.js +5 -5
- package/lib/esm/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/feature/fixed-toolbar/component.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/feature/fixed-toolbar/component.tsx +5 -5
- package/src/feature/fixed-toolbar/index.ts +2 -2
package/lib/cjs/index.js
CHANGED
|
@@ -8650,8 +8650,8 @@ const FixedToolbarComponent = vue.defineComponent({
|
|
|
8650
8650
|
const canUndo = (typeof props.canUndo === "boolean" ? props.canUndo : (_b = props.canUndo) == null ? void 0 : _b.value) || false;
|
|
8651
8651
|
const canRedo = (typeof props.canRedo === "boolean" ? props.canRedo : (_c = props.canRedo) == null ? void 0 : _c.value) || false;
|
|
8652
8652
|
const viewState = props.ctx.get(viewMenuStateCtx.key);
|
|
8653
|
-
const maxWidth = editorWidthMap[viewState.editorWidth];
|
|
8654
|
-
const isFull = maxWidth === "none";
|
|
8653
|
+
const maxWidth = vue.computed(() => editorWidthMap[viewState.editorWidth]);
|
|
8654
|
+
const isFull = vue.computed(() => maxWidth.value === "none");
|
|
8655
8655
|
if (!viewState.fixedToolbarVisible) {
|
|
8656
8656
|
return /* @__PURE__ */ vue.h(
|
|
8657
8657
|
"button",
|
|
@@ -8713,8 +8713,8 @@ const FixedToolbarComponent = vue.defineComponent({
|
|
|
8713
8713
|
alignItems: "center",
|
|
8714
8714
|
justifyContent: "center",
|
|
8715
8715
|
width: "100%",
|
|
8716
|
-
maxWidth: isFull ? "100%" : maxWidth,
|
|
8717
|
-
margin: isFull ? "0" : "0 auto",
|
|
8716
|
+
maxWidth: isFull.value ? "100%" : maxWidth.value,
|
|
8717
|
+
margin: isFull.value ? "0" : "0 auto",
|
|
8718
8718
|
gap: "0px",
|
|
8719
8719
|
minWidth: "0",
|
|
8720
8720
|
overflow: "hidden"
|
|
@@ -10912,7 +10912,7 @@ class FixedToolbarView {
|
|
|
10912
10912
|
}
|
|
10913
10913
|
const maxWidth = editorWidthMap[viewState2.editorWidth];
|
|
10914
10914
|
const isFull = maxWidth === "none";
|
|
10915
|
-
const px = isFull ? "80px" : "
|
|
10915
|
+
const px = isFull ? "80px" : "0px";
|
|
10916
10916
|
__privateGet$4(this, _view$1).dom.style.maxWidth = maxWidth;
|
|
10917
10917
|
__privateGet$4(this, _view$1).dom.style.width = isFull ? "100%" : maxWidth;
|
|
10918
10918
|
__privateGet$4(this, _view$1).dom.style.margin = isFull ? "0" : "0 auto";
|