@jvs-milkdown/crepe 1.2.32 → 1.2.34

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 CHANGED
@@ -5856,8 +5856,7 @@ const Toolbar = vue.defineComponent({
5856
5856
  siblingsWidth += s.offsetWidth;
5857
5857
  }
5858
5858
  }
5859
- const gapCount = Math.max(0, siblings.length);
5860
- containerWidth = parent.clientWidth - siblingsWidth - gapCount * 12;
5859
+ containerWidth = parent.clientWidth - siblingsWidth - 12;
5861
5860
  } else {
5862
5861
  containerWidth = container.clientWidth;
5863
5862
  }
@@ -8668,54 +8667,42 @@ const FixedToolbarComponent = vue.defineComponent({
8668
8667
  }
8669
8668
  },
8670
8669
  /* @__PURE__ */ vue.h(
8671
- "div",
8670
+ "button",
8672
8671
  {
8672
+ type: "button",
8673
+ class: "fixed-toolbar-expand-btn",
8674
+ title: "\u5C55\u5F00\u5DE5\u5177\u680F",
8675
+ onClick: (e) => {
8676
+ e.preventDefault();
8677
+ e.stopPropagation();
8678
+ viewState.fixedToolbarVisible = true;
8679
+ },
8673
8680
  style: {
8674
- position: "relative",
8675
- width: "100%",
8676
- maxWidth: isFull.value ? "100%" : maxWidth.value,
8677
- margin: isFull.value ? "0" : "0 auto",
8678
- height: "100%"
8681
+ position: "absolute",
8682
+ top: "0",
8683
+ right: "40px",
8684
+ display: "flex",
8685
+ alignItems: "center",
8686
+ justifyContent: "center",
8687
+ width: "28px",
8688
+ height: "24px",
8689
+ border: "1px solid var(--crepe-color-outline-variant, color-mix(in srgb, var(--crepe-color-outline), transparent 85%))",
8690
+ borderTop: "none",
8691
+ background: "var(--crepe-color-surface, #ffffff)",
8692
+ cursor: "pointer",
8693
+ borderRadius: "0 0 6px 6px",
8694
+ boxShadow: "0 4px 8px rgba(0, 0, 0, 0.06)",
8695
+ color: "var(--crepe-color-on-surface, #363b4c)",
8696
+ pointerEvents: "auto",
8697
+ zIndex: 200
8679
8698
  }
8680
8699
  },
8681
8700
  /* @__PURE__ */ vue.h(
8682
- "button",
8701
+ "span",
8683
8702
  {
8684
- type: "button",
8685
- class: "fixed-toolbar-expand-btn",
8686
- title: "\u5C55\u5F00\u5DE5\u5177\u680F",
8687
- onClick: (e) => {
8688
- e.preventDefault();
8689
- e.stopPropagation();
8690
- viewState.fixedToolbarVisible = true;
8691
- },
8692
- style: {
8693
- position: "absolute",
8694
- top: "0",
8695
- right: "6px",
8696
- display: "flex",
8697
- alignItems: "center",
8698
- justifyContent: "center",
8699
- width: "28px",
8700
- height: "24px",
8701
- border: "1px solid var(--crepe-color-outline-variant, color-mix(in srgb, var(--crepe-color-outline), transparent 85%))",
8702
- borderTop: "none",
8703
- background: "var(--crepe-color-surface, #ffffff)",
8704
- cursor: "pointer",
8705
- borderRadius: "0 0 6px 6px",
8706
- boxShadow: "0 4px 8px rgba(0, 0, 0, 0.06)",
8707
- color: "var(--crepe-color-on-surface, #363b4c)",
8708
- pointerEvents: "auto",
8709
- zIndex: 200
8710
- }
8711
- },
8712
- /* @__PURE__ */ vue.h(
8713
- "span",
8714
- {
8715
- style: { display: "inline-flex", alignItems: "center" },
8716
- innerHTML: chevronDownIcon
8717
- }
8718
- )
8703
+ style: { display: "inline-flex", alignItems: "center" },
8704
+ innerHTML: chevronDownIcon
8705
+ }
8719
8706
  )
8720
8707
  )
8721
8708
  );
@@ -8743,7 +8730,7 @@ const FixedToolbarComponent = vue.defineComponent({
8743
8730
  width: "100%",
8744
8731
  maxWidth: isFull.value ? "100%" : maxWidth.value,
8745
8732
  margin: isFull.value ? "0" : "0 auto",
8746
- paddingRight: "40px",
8733
+ padding: "0px 10px",
8747
8734
  gap: "0px",
8748
8735
  minWidth: "0",
8749
8736
  overflow: "hidden"
@@ -8865,41 +8852,41 @@ const FixedToolbarComponent = vue.defineComponent({
8865
8852
  isFixed: true
8866
8853
  }
8867
8854
  ),
8868
- showShortcuts.value && /* @__PURE__ */ vue.h(ShortcutHelpModal, { ctx: props.ctx, visible: showShortcuts }),
8855
+ showShortcuts.value && /* @__PURE__ */ vue.h(ShortcutHelpModal, { ctx: props.ctx, visible: showShortcuts })
8856
+ ),
8857
+ /* @__PURE__ */ vue.h(
8858
+ "button",
8859
+ {
8860
+ type: "button",
8861
+ class: "toolbar-item collapse-btn",
8862
+ title: "\u6298\u53E0\u5DE5\u5177\u680F",
8863
+ onClick: (e) => {
8864
+ e.preventDefault();
8865
+ e.stopPropagation();
8866
+ viewState.fixedToolbarVisible = false;
8867
+ },
8868
+ style: {
8869
+ position: "absolute",
8870
+ top: "6px",
8871
+ right: "40px",
8872
+ margin: "0",
8873
+ display: "flex",
8874
+ alignItems: "center",
8875
+ justifyContent: "center",
8876
+ pointerEvents: "auto",
8877
+ zIndex: 200
8878
+ }
8879
+ },
8869
8880
  /* @__PURE__ */ vue.h(
8870
- "button",
8881
+ "span",
8871
8882
  {
8872
- type: "button",
8873
- class: "toolbar-item collapse-btn",
8874
- title: "\u6298\u53E0\u5DE5\u5177\u680F",
8875
- onClick: (e) => {
8876
- e.preventDefault();
8877
- e.stopPropagation();
8878
- viewState.fixedToolbarVisible = false;
8879
- },
8880
8883
  style: {
8881
- position: "absolute",
8882
- top: "6px",
8883
- right: "6px",
8884
- margin: "0",
8885
- display: "flex",
8884
+ display: "inline-flex",
8886
8885
  alignItems: "center",
8887
- justifyContent: "center",
8888
- pointerEvents: "auto",
8889
- zIndex: 200
8890
- }
8891
- },
8892
- /* @__PURE__ */ vue.h(
8893
- "span",
8894
- {
8895
- style: {
8896
- display: "inline-flex",
8897
- alignItems: "center",
8898
- transform: "rotate(180deg)"
8899
- },
8900
- innerHTML: chevronDownIcon
8901
- }
8902
- )
8886
+ transform: "rotate(180deg)"
8887
+ },
8888
+ innerHTML: chevronDownIcon
8889
+ }
8903
8890
  )
8904
8891
  )
8905
8892
  );