@zero-library/common 2.2.9 → 2.2.10

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.esm.js CHANGED
@@ -1170,7 +1170,7 @@ var DocxPreview_default = ({ fileUrl, scale = 1 }) => {
1170
1170
  const resetZoom = () => {
1171
1171
  setZoomRatio(1);
1172
1172
  };
1173
- return /* @__PURE__ */ jsxs("div", { className: classNames(styles_module_default.nsPreviewDocx, "height-full"), children: [
1173
+ return /* @__PURE__ */ jsxs("div", { className: classNames(styles_module_default.nsPreviewDocx, "height-full", "width-full"), children: [
1174
1174
  /* @__PURE__ */ jsxs(Flex, { gap: 6, align: "center", className: styles_module_default.docxToolbar, children: [
1175
1175
  /* @__PURE__ */ jsx(Button, { onClick: zoomOut, icon: /* @__PURE__ */ jsx(MinusCircleOutlined, {}), title: "\u7F29\u5C0F" }),
1176
1176
  /* @__PURE__ */ jsx(Button, { onClick: zoomIn, icon: /* @__PURE__ */ jsx(PlusCircleOutlined, {}), title: "\u653E\u5927" }),
@@ -1409,7 +1409,7 @@ var MarkdownPreview_default = ({ fileUrl, searchValue }) => {
1409
1409
  useEffect(() => {
1410
1410
  init();
1411
1411
  }, [fileUrl]);
1412
- return error ? /* @__PURE__ */ jsx(Result, { status: "error", title: error }) : /* @__PURE__ */ jsx("div", { className: "height-full", children: /* @__PURE__ */ jsx(RenderMarkdown_default, { content, searchValue }) });
1412
+ return error ? /* @__PURE__ */ jsx(Result, { status: "error", title: error }) : /* @__PURE__ */ jsx("div", { className: "height-full width-full", children: /* @__PURE__ */ jsx(RenderMarkdown_default, { content, searchValue }) });
1413
1413
  };
1414
1414
 
1415
1415
  // src/hooks/iframe/iframeRelay.ts