yz-yuki-plugin 2.0.3-6 → 2.0.3-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.
|
@@ -28,7 +28,8 @@ class YukiPuppeteerRender {
|
|
|
28
28
|
let name = Options?.modelName ?? 'yuki-plugin';
|
|
29
29
|
let pageHeight = Options?.pageSplitHeight ?? 8000; // 分割图片高度,默认 8000
|
|
30
30
|
try {
|
|
31
|
-
const
|
|
31
|
+
const browser = this.puppeteerInstance.browser;
|
|
32
|
+
const page = await browser?.newPage().catch(err => {
|
|
32
33
|
logger.error(err);
|
|
33
34
|
});
|
|
34
35
|
if (!page)
|
package/package.json
CHANGED
|
@@ -6,13 +6,16 @@
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
body {
|
|
9
|
-
width:
|
|
10
|
-
font-family: "OPSans"
|
|
11
|
-
|
|
9
|
+
width: 463px !important;
|
|
10
|
+
font-family: "OPSans";
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.main-container{
|
|
14
|
+
width: 463px;
|
|
12
15
|
}
|
|
13
16
|
|
|
14
17
|
.container {
|
|
15
|
-
width:
|
|
18
|
+
width: 380px;
|
|
16
19
|
max-height: 40rem;
|
|
17
20
|
margin: auto;
|
|
18
21
|
font-size: 1.125rem
|