From ec3cf6592628fc8316a8a6137c8ceeea877ad79b Mon Sep 17 00:00:00 2001 From: Reorx Date: Sun, 12 Feb 2023 00:14:56 +0800 Subject: [PATCH] chores: update dialog content and filename generating --- src/editor/index.html | 4 ++-- src/themes/data.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/editor/index.html b/src/editor/index.html index 3fcfee7..8de5dc6 100644 --- a/src/editor/index.html +++ b/src/editor/index.html @@ -37,9 +37,9 @@

The HTML that JSONCV generates is optimized for printing in an A4 letter, so it can be used to create a well-formatted PDF document.

You can first click "Download HTML", then open the HTML in a browser and choose "Print" from the menu (or press ⌘+P), it will open a modal where you should find the option to save it as a PDF.

-

For best compatibility, I recommend using Firefox rather than Chrome to complete this process.

+

For browser selection, Chrome's PDF has a better rendering effect, while Firefox's PDF is smaller and has better support for copying text, choose according to your needs.

-

Click the button below to open the print dialog for the preview.

+

You can directly open the print dialog for the preview by clicking the button below:

diff --git a/src/themes/data.js b/src/themes/data.js index 7c02a15..d91d136 100644 --- a/src/themes/data.js +++ b/src/themes/data.js @@ -20,7 +20,7 @@ export function getRenderData(cvData) { export function getCVTitle(cv) { let {name, version} = cv.meta || {} if (!name) name = cv.basics.name || 'JSONCV' - return `${name}${version ? ' ' + version : ''}` + return `${name}${version ? '-' + version : ''}` } function noSchemaURL(url) {