diff --git a/public/res/core.js b/public/res/core.js index bacdbb3d..20a87430 100644 --- a/public/res/core.js +++ b/public/res/core.js @@ -129,7 +129,9 @@ define([ // Template utils.setInputValue("#textarea-settings-publish-template", settings.template); // PDF template - utils.setInputValue("#textarea-settings-publish-pdf-template", settings.pdfTemplate); + utils.setInputValue("#textarea-settings-pdf-template", settings.pdfTemplate); + // PDF page size + utils.setInputValue("#input-settings-pdf-page-size", settings.pdfPageSize); // SSH proxy utils.setInputValue("#input-settings-ssh-proxy", settings.sshProxy); @@ -165,7 +167,9 @@ define([ // Template newSettings.template = utils.getInputTextValue("#textarea-settings-publish-template", event); // PDF template - newSettings.pdfTemplate = utils.getInputTextValue("#textarea-settings-publish-pdf-template", event); + newSettings.pdfTemplate = utils.getInputTextValue("#textarea-settings-pdf-template", event); + // PDF page size + newSettings.pdfPageSize = utils.getInputValue("#input-settings-pdf-page-size"); // SSH proxy newSettings.sshProxy = utils.checkUrl(utils.getInputTextValue("#input-settings-ssh-proxy", event), true); diff --git a/public/res/html/bodyIndex.html b/public/res/html/bodyIndex.html index b1864bf6..5922a555 100644 --- a/public/res/html/bodyIndex.html +++ b/public/res/html/bodyIndex.html @@ -983,14 +983,25 @@
-
+
+ +
+ +
+
diff --git a/public/res/html/dialogAbout.html b/public/res/html/dialogAbout.html index d6188e7d..c0991479 100644 --- a/public/res/html/dialogAbout.html +++ b/public/res/html/dialogAbout.html @@ -10,12 +10,12 @@
About:
GitHub - project/ + project / issue tracker
Chrome - app(thanks for your review!) + app (thanks for your review!)
Follow on Twitter
diff --git a/public/res/publisher.js b/public/res/publisher.js index 908f62d2..518d2b85 100644 --- a/public/res/publisher.js +++ b/public/res/publisher.js @@ -336,6 +336,7 @@ define([ var xhr = new XMLHttpRequest(); xhr.open('POST', HTMLTOPDF_URL, true); xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); + xhr.setRequestHeader('page-size', settings.pdfPageSize); xhr.responseType = 'blob'; xhr.onreadystatechange = function() { if(this.readyState == 4) { diff --git a/public/res/settings.js b/public/res/settings.js index 8cbdefa3..54b3ef92 100644 --- a/public/res/settings.js +++ b/public/res/settings.js @@ -48,6 +48,7 @@ define([ '<%= documentHTML %>\n', '' ].join(""), + pdfPageSize: 'A4', sshProxy: SSH_PROXY_URL, shortcuts: {}, extensionSettings: {} diff --git a/public/res/styles/main.less b/public/res/styles/main.less index 2f7a44ad..c1eca266 100644 --- a/public/res/styles/main.less +++ b/public/res/styles/main.less @@ -1217,14 +1217,13 @@ div.dropdown-menu textarea { opacity: 0.1; margin-top: -4px; margin-left: -2px; - margin-right: 3px; - font-size: 12px; + margin-right: 2px; + font-size: 14px; vertical-align: top; .file-title-navbar & { - font-size: 14px; + font-size: 16px; margin-top: -2px; margin-left: -4px; - margin-right: 4px; } }