payload-plugin-newsletter 0.14.0 → 0.14.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [0.14.1] - 2025-07-22
2
+
3
+ ### Changed
4
+ - Improved email preview in Broadcasts collection to use full container height
5
+ - Email preview now utilizes all available vertical space
6
+ - Maintains realistic email widths (600px for desktop, 375px for mobile)
7
+ - Added scrolling within preview container for longer email content
8
+ - Better space utilization for viewing and editing broadcast emails
9
+
1
10
  ## [0.14.0] - 2025-07-22
2
11
 
3
12
  ### Added
@@ -1888,13 +1888,16 @@ var EmailRenderer = ({
1888
1888
  width: "100%",
1889
1889
  height: "100%",
1890
1890
  display: "flex",
1891
- alignItems: "center",
1892
- justifyContent: "center"
1891
+ alignItems: "flex-start",
1892
+ justifyContent: "center",
1893
+ overflow: "auto",
1894
+ padding: "2rem",
1895
+ boxSizing: "border-box"
1893
1896
  };
1894
1897
  const iframeStyle = {
1895
1898
  width: device === "mobile" ? "375px" : "600px",
1896
- maxWidth: "100%",
1897
1899
  height: "100%",
1900
+ minHeight: "600px",
1898
1901
  background: "white",
1899
1902
  boxShadow: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
1900
1903
  borderRadius: device === "mobile" ? "20px" : "8px",
@@ -2090,7 +2093,7 @@ var BroadcastInlinePreview = () => {
2090
2093
  display: "flex",
2091
2094
  flexDirection: "column",
2092
2095
  background: "#f3f4f6",
2093
- minHeight: "600px"
2096
+ overflow: "hidden"
2094
2097
  };
2095
2098
  const errorStyle = {
2096
2099
  padding: "2rem",
@@ -2146,14 +2149,14 @@ var BroadcastInlinePreview = () => {
2146
2149
  isLoading
2147
2150
  }
2148
2151
  ),
2149
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { style: { flex: 1, display: "flex", alignItems: "center", justifyContent: "center", padding: "2rem" }, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
2152
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
2150
2153
  EmailRenderer,
2151
2154
  {
2152
2155
  template: previewData.template,
2153
2156
  data: previewData.data,
2154
2157
  device
2155
2158
  }
2156
- ) })
2159
+ )
2157
2160
  ] }) : null })
2158
2161
  ] });
2159
2162
  };