markpdfdown 0.3.1 → 0.3.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.
@@ -86,6 +86,13 @@ body {
86
86
  overflow-y: auto;
87
87
  }
88
88
 
89
+ /* Home upload list: keep action controls visible when many files are selected */
90
+ .home-upload-panel .ant-upload-list {
91
+ max-height: 120px;
92
+ overflow-y: auto;
93
+ scrollbar-gutter: stable;
94
+ }
95
+
89
96
  /* Splitter Panel 溢出控制 */
90
97
  .ant-splitter {
91
98
  overflow: hidden !important;
@@ -70689,7 +70689,7 @@ const UploadPanel = () => {
70689
70689
  setUploading(false);
70690
70690
  }
70691
70691
  };
70692
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
70692
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "home-upload-panel", children: [
70693
70693
  /* @__PURE__ */ jsxRuntimeExports.jsx(Row, { style: { display: "block", marginTop: "32px" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Col, { span: 24, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Dragger2, { ...props, style: { minWidth: "760px" }, children: [
70694
70694
  /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "ant-upload-drag-icon", children: /* @__PURE__ */ jsxRuntimeExports.jsx(RefIcon$c, {}) }),
70695
70695
  /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "ant-upload-text", children: t2("dragger.text") }),
@@ -70872,6 +70872,9 @@ function mapCloudTaskToTask(ct) {
70872
70872
  status: ct.status,
70873
70873
  completed_count: pagesCompleted,
70874
70874
  failed_count: ct.pages_failed || 0,
70875
+ error: ct.error_message || ct.description || null,
70876
+ description: ct.description,
70877
+ error_message: ct.error_message,
70875
70878
  isCloud: true,
70876
70879
  sortTimestamp
70877
70880
  };
@@ -71300,8 +71303,7 @@ const List = () => {
71300
71303
  } else {
71301
71304
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Text$4, { strong: true, children: text2 });
71302
71305
  }
71303
- })() }),
71304
- record.provider === -1 && /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip2, { title: t2("task_type.cloud"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(RefIcon$m, { style: { color: "#1890ff" } }) })
71306
+ })() })
71305
71307
  ]
71306
71308
  }
71307
71309
  )
@@ -71310,16 +71312,31 @@ const List = () => {
71310
71312
  title: t2("columns.model"),
71311
71313
  dataIndex: "model_name",
71312
71314
  width: 240,
71313
- render: (text2) => /* @__PURE__ */ jsxRuntimeExports.jsx(
71314
- Text$4,
71315
+ render: (text2, record) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
71316
+ "div",
71315
71317
  {
71316
71318
  style: {
71317
71319
  maxWidth: "240px",
71318
- overflow: "hidden",
71319
- textOverflow: "ellipsis",
71320
- whiteSpace: "nowrap"
71320
+ display: "flex",
71321
+ alignItems: "center",
71322
+ gap: "4px"
71321
71323
  },
71322
- children: text2
71324
+ children: [
71325
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
71326
+ Text$4,
71327
+ {
71328
+ style: {
71329
+ maxWidth: record.provider === -1 ? "216px" : "240px",
71330
+ overflow: "hidden",
71331
+ textOverflow: "ellipsis",
71332
+ whiteSpace: "nowrap",
71333
+ display: "inline-block"
71334
+ },
71335
+ children: text2
71336
+ }
71337
+ ),
71338
+ record.provider === -1 && /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip2, { title: t2("task_type.cloud"), children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { display: "inline-flex", alignItems: "center" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(RefIcon$m, { style: { color: "#1890ff" } }) }) })
71339
+ ]
71323
71340
  }
71324
71341
  )
71325
71342
  },
@@ -71342,8 +71359,9 @@ const List = () => {
71342
71359
  width: 100,
71343
71360
  render: (status2, record) => {
71344
71361
  const tag = /* @__PURE__ */ jsxRuntimeExports.jsx(Tag, { color: getStatusColor(status2), children: getStatusText(status2) });
71345
- if (status2 === 0 && record.error) {
71346
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip2, { title: record.error, children: tag });
71362
+ const failedReason = record.error || ("error_message" in record ? record.error_message : void 0) || ("description" in record ? record.description : void 0);
71363
+ if ((status2 === 0 || status2 === 8) && failedReason) {
71364
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip2, { title: failedReason, children: tag });
71347
71365
  }
71348
71366
  return tag;
71349
71367
  }
@@ -5,8 +5,8 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>MarkPDFdown</title>
8
- <script type="module" crossorigin src="./assets/index-DoIlrfzr.js"></script>
9
- <link rel="stylesheet" crossorigin href="./assets/index-ChH6F00X.css">
8
+ <script type="module" crossorigin src="./assets/index-De-mUR1O.js"></script>
9
+ <link rel="stylesheet" crossorigin href="./assets/index-DEm7d9O3.css">
10
10
  </head>
11
11
  <body>
12
12
  <div id="root"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markpdfdown",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "A high-quality PDF to Markdown tool based on large language model visual recognition.",
5
5
  "author": "MarkPDFdown",
6
6
  "main": "dist/main/index.js",