@danxbot/ui 6.4.1 → 6.4.3

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 CHANGED
@@ -35357,7 +35357,7 @@ function nL(e, t, n) {
35357
35357
  jt(t, e.start + m, e.start + m + l[2].length, "marker"), a = m;
35358
35358
  }
35359
35359
  for (; i < a && /[ \t]/.test(e.text[i]); ) i++;
35360
- for (; a > i && /[ \t]/.test(e.text[a - 1]); ) a--;
35360
+ if (l) for (; a > i && /[ \t]/.test(e.text[a - 1]); ) a--;
35361
35361
  const c = UR({ text: e.text.slice(i, a), start: e.start + i });
35362
35362
  zt(t, { kind: "heading", level: o }, e.start);
35363
35363
  const u = vg(t, [{ text: e.text.slice(i, a), start: e.start + i }], c, n === "text" ? "heading" : n);
@@ -38549,7 +38549,7 @@ function qy(e, t = {}) {
38549
38549
  const m = u.content[0].start, d = u.content[u.content.length - 1].end;
38550
38550
  r.set(u, t.highlight(e.slice(m, d), u.frame.language, m));
38551
38551
  }
38552
- const o = [...n].sort((u, m) => u.start - m.start || m.end - u.end || u.seq - m.seq);
38552
+ const o = [...n].sort((u, m) => u.start - m.start || u.seq - m.seq);
38553
38553
  let s = 0, i = 0;
38554
38554
  function a(u, m, d, p) {
38555
38555
  let h = m;
@@ -39217,7 +39217,7 @@ function K5({ surface: e, state: t, run: n, container: r }) {
39217
39217
  "absolute left-8 z-20 flex items-center gap-1 rounded-lg border border-border-subtle",
39218
39218
  "bg-surface px-1.5 py-1 shadow-lg"
39219
39219
  ),
39220
- style: { top: s - 38 },
39220
+ style: { top: s, transform: "translateY(calc(-100% - 6px))" },
39221
39221
  onMouseDown: (a) => a.preventDefault(),
39222
39222
  children: [
39223
39223
  t.construct && /* @__PURE__ */ f(q5, { surface: e, construct: t.construct, run: n }),