@thangph2146/nextjs-editor 1.0.5 → 1.0.7

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
@@ -2709,29 +2709,29 @@ function ImageComponent({
2709
2709
  className: "max-w-[96vw] max-h-[96vh] w-[96vw] h-[96vh] overflow-hidden flex flex-col p-0 gap-0 rounded-xl border shadow-2xl",
2710
2710
  "aria-describedby": "view-original-image-desc",
2711
2711
  children: [
2712
- /* @__PURE__ */ jsx19(DialogHeader, { className: "shrink-0 px-6 pt-5 pb-2 border-b bg-muted/30", children: /* @__PURE__ */ jsx19(DialogTitle, { className: "text-base font-semibold", children: "Xem h\xECnh g\u1ED1c" }) }),
2712
+ /* @__PURE__ */ jsx19(DialogHeader, { className: "shrink-0 px-4 pt-3 pb-3 pr-12 border-b border-border/50 bg-muted/20 rounded-t-xl", children: /* @__PURE__ */ jsx19(DialogTitle, { className: "text-sm font-semibold", children: "Xem h\xECnh g\u1ED1c" }) }),
2713
2713
  /* @__PURE__ */ jsx19(
2714
2714
  "div",
2715
2715
  {
2716
2716
  id: "view-original-image-desc",
2717
- className: "flex-1 min-h-[70vh] overflow-auto flex items-center justify-center p-4 bg-black/20",
2717
+ className: "flex-1 min-h-0 overflow-auto flex items-center justify-center p-4 bg-black/10",
2718
2718
  children: /* @__PURE__ */ jsx19(
2719
2719
  "img",
2720
2720
  {
2721
2721
  src,
2722
2722
  alt: altText || "H\xECnh g\u1ED1c",
2723
- className: "flex-1 min-w-0 min-h-0 w-full h-full max-w-full max-h-full object-contain rounded-lg"
2723
+ className: "max-w-full max-h-full w-auto h-auto object-contain rounded-lg select-none"
2724
2724
  }
2725
2725
  )
2726
2726
  }
2727
2727
  ),
2728
- /* @__PURE__ */ jsx19(DialogFooter, { className: "shrink-0 flex-row justify-center gap-2 px-6 py-4 border-t bg-muted/20 rounded-b-xl", children: /* @__PURE__ */ jsx19(
2728
+ /* @__PURE__ */ jsx19(DialogFooter, { className: "shrink-0 flex-row justify-center gap-2 px-4 py-3 border-t border-border/50 bg-muted/20 rounded-b-xl", children: /* @__PURE__ */ jsx19(
2729
2729
  Button,
2730
2730
  {
2731
2731
  variant: "outline",
2732
- size: "default",
2732
+ size: "sm",
2733
2733
  asChild: true,
2734
- className: "gap-2 text-base",
2734
+ className: "gap-2",
2735
2735
  children: /* @__PURE__ */ jsxs9(
2736
2736
  "a",
2737
2737
  {