Vanessa 2024-02-04 17:29:25 +08:00
parent 6fcf50e8fa
commit b48d5450b4
2 changed files with 97 additions and 89 deletions

View file

@ -863,8 +863,8 @@ app.whenReady().then(() => {
parent: getWindowByContentId(event.sender.id), parent: getWindowByContentId(event.sender.id),
modal: true, modal: true,
show: true, show: true,
width: 1032, width: Math.floor(screen.getPrimaryDisplay().size.width * 0.8),
height: 725, height: Math.floor(screen.getPrimaryDisplay().workAreaSize.height * 0.8),
resizable: false, resizable: false,
frame: "darwin" === process.platform, frame: "darwin" === process.platform,
icon: path.join(appDir, "stage", "icon-large.png"), icon: path.join(appDir, "stage", "icon-large.png"),

View file

@ -111,9 +111,9 @@ const renderPDF = (id: string) => {
} }
#action { #action {
width: 200px; width: 232px;
background: var(--b3-theme-surface); background: var(--b3-theme-surface);
padding: 16px; padding: 16px 0;
position: fixed; position: fixed;
right: 0; right: 0;
top: 0; top: 0;
@ -121,6 +121,8 @@ const renderPDF = (id: string) => {
bottom: 0; bottom: 0;
overflow-x: hidden; overflow-x: hidden;
z-index: 1; z-index: 1;
display: flex;
flex-direction: column;
} }
#preview { #preview {
@ -156,8 +158,12 @@ const renderPDF = (id: string) => {
border-bottom: 1px solid var(--b3-theme-surface-lighter); border-bottom: 1px solid var(--b3-theme-surface-lighter);
display: block; display: block;
color: var(--b3-theme-on-surface); color: var(--b3-theme-on-surface);
padding-bottom: 12px; padding-bottom: 16px;
margin-bottom: 12px; margin: 0 16px 16px 16px;
}
.b3-label:last-child {
border-bottom: none;
} }
${setInlineStyle(false)} ${setInlineStyle(false)}
${document.getElementById("pluginsStyle").innerHTML} ${document.getElementById("pluginsStyle").innerHTML}
@ -166,6 +172,7 @@ const renderPDF = (id: string) => {
</head> </head>
<body style="-webkit-print-color-adjust: exact;"> <body style="-webkit-print-color-adjust: exact;">
<div id="action"> <div id="action">
<div style="flex: 1;overflow: auto;">
<div class="b3-label"> <div class="b3-label">
<div> <div>
${window.siyuan.languages.exportPDF0} ${window.siyuan.languages.exportPDF0}
@ -250,7 +257,8 @@ const renderPDF = (id: string) => {
<input id="watermark" class="b3-switch" type="checkbox" ${localData.watermark ? "checked" : ""}> <input id="watermark" class="b3-switch" type="checkbox" ${localData.watermark ? "checked" : ""}>
<div style="display:none;font-size: 12px;margin-top: 12px;color: var(--b3-theme-on-surface);">${window.siyuan.languages._kernel[214]}</div> <div style="display:none;font-size: 12px;margin-top: 12px;color: var(--b3-theme-on-surface);">${window.siyuan.languages._kernel[214]}</div>
</label> </label>
<div class="fn__flex"> </div>
<div class="fn__flex" style="padding: 0 16px">
<div class="fn__flex-1"></div> <div class="fn__flex-1"></div>
<button class="b3-button b3-button--cancel">${window.siyuan.languages.cancel}</button> <button class="b3-button b3-button--cancel">${window.siyuan.languages.cancel}</button>
<div class="fn__space"></div> <div class="fn__space"></div>