@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/esm/index.js
CHANGED
|
@@ -8629,8 +8629,8 @@ const FixedToolbarComponent = defineComponent({
|
|
|
8629
8629
|
const canUndo = (typeof props.canUndo === "boolean" ? props.canUndo : (_b = props.canUndo) == null ? void 0 : _b.value) || false;
|
|
8630
8630
|
const canRedo = (typeof props.canRedo === "boolean" ? props.canRedo : (_c = props.canRedo) == null ? void 0 : _c.value) || false;
|
|
8631
8631
|
const viewState = props.ctx.get(viewMenuStateCtx.key);
|
|
8632
|
-
const maxWidth = editorWidthMap[viewState.editorWidth];
|
|
8633
|
-
const isFull = maxWidth === "none";
|
|
8632
|
+
const maxWidth = computed(() => editorWidthMap[viewState.editorWidth]);
|
|
8633
|
+
const isFull = computed(() => maxWidth.value === "none");
|
|
8634
8634
|
if (!viewState.fixedToolbarVisible) {
|
|
8635
8635
|
return /* @__PURE__ */ h(
|
|
8636
8636
|
"button",
|
|
@@ -8692,8 +8692,8 @@ const FixedToolbarComponent = defineComponent({
|
|
|
8692
8692
|
alignItems: "center",
|
|
8693
8693
|
justifyContent: "center",
|
|
8694
8694
|
width: "100%",
|
|
8695
|
-
maxWidth: isFull ? "100%" : maxWidth,
|
|
8696
|
-
margin: isFull ? "0" : "0 auto",
|
|
8695
|
+
maxWidth: isFull.value ? "100%" : maxWidth.value,
|
|
8696
|
+
margin: isFull.value ? "0" : "0 auto",
|
|
8697
8697
|
gap: "0px",
|
|
8698
8698
|
minWidth: "0",
|
|
8699
8699
|
overflow: "hidden"
|
|
@@ -10891,7 +10891,7 @@ class FixedToolbarView {
|
|
|
10891
10891
|
}
|
|
10892
10892
|
const maxWidth = editorWidthMap[viewState2.editorWidth];
|
|
10893
10893
|
const isFull = maxWidth === "none";
|
|
10894
|
-
const px = isFull ? "80px" : "
|
|
10894
|
+
const px = isFull ? "80px" : "0px";
|
|
10895
10895
|
__privateGet$4(this, _view$1).dom.style.maxWidth = maxWidth;
|
|
10896
10896
|
__privateGet$4(this, _view$1).dom.style.width = isFull ? "100%" : maxWidth;
|
|
10897
10897
|
__privateGet$4(this, _view$1).dom.style.margin = isFull ? "0" : "0 auto";
|