mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 07:30:12 +01:00
This commit is contained in:
parent
6fcf50e8fa
commit
b48d5450b4
2 changed files with 97 additions and 89 deletions
|
|
@ -863,8 +863,8 @@ app.whenReady().then(() => {
|
|||
parent: getWindowByContentId(event.sender.id),
|
||||
modal: true,
|
||||
show: true,
|
||||
width: 1032,
|
||||
height: 725,
|
||||
width: Math.floor(screen.getPrimaryDisplay().size.width * 0.8),
|
||||
height: Math.floor(screen.getPrimaryDisplay().workAreaSize.height * 0.8),
|
||||
resizable: false,
|
||||
frame: "darwin" === process.platform,
|
||||
icon: path.join(appDir, "stage", "icon-large.png"),
|
||||
|
|
|
|||
|
|
@ -111,9 +111,9 @@ const renderPDF = (id: string) => {
|
|||
}
|
||||
|
||||
#action {
|
||||
width: 200px;
|
||||
width: 232px;
|
||||
background: var(--b3-theme-surface);
|
||||
padding: 16px;
|
||||
padding: 16px 0;
|
||||
position: fixed;
|
||||
right: 0;
|
||||
top: 0;
|
||||
|
|
@ -121,6 +121,8 @@ const renderPDF = (id: string) => {
|
|||
bottom: 0;
|
||||
overflow-x: hidden;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
#preview {
|
||||
|
|
@ -156,8 +158,12 @@ const renderPDF = (id: string) => {
|
|||
border-bottom: 1px solid var(--b3-theme-surface-lighter);
|
||||
display: block;
|
||||
color: var(--b3-theme-on-surface);
|
||||
padding-bottom: 12px;
|
||||
margin-bottom: 12px;
|
||||
padding-bottom: 16px;
|
||||
margin: 0 16px 16px 16px;
|
||||
}
|
||||
|
||||
.b3-label:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
${setInlineStyle(false)}
|
||||
${document.getElementById("pluginsStyle").innerHTML}
|
||||
|
|
@ -166,6 +172,7 @@ const renderPDF = (id: string) => {
|
|||
</head>
|
||||
<body style="-webkit-print-color-adjust: exact;">
|
||||
<div id="action">
|
||||
<div style="flex: 1;overflow: auto;">
|
||||
<div class="b3-label">
|
||||
<div>
|
||||
${window.siyuan.languages.exportPDF0}
|
||||
|
|
@ -250,7 +257,8 @@ const renderPDF = (id: string) => {
|
|||
<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>
|
||||
</label>
|
||||
<div class="fn__flex">
|
||||
</div>
|
||||
<div class="fn__flex" style="padding: 0 16px">
|
||||
<div class="fn__flex-1"></div>
|
||||
<button class="b3-button b3-button--cancel">${window.siyuan.languages.cancel}</button>
|
||||
<div class="fn__space"></div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue