chores: update dialog content and filename generating

This commit is contained in:
Reorx 2023-02-12 00:14:56 +08:00
parent 14296d1f8a
commit ec3cf65926
2 changed files with 3 additions and 3 deletions

View File

@ -37,9 +37,9 @@
<form method="dialog">
<p>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.</p>
<p>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.</p>
<p>For best compatibility, I recommend using Firefox rather than Chrome to complete this process.</p>
<p>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.</p>
<button>OK</button>
<p>Click the button below to open the print dialog for the preview.</p>
<p>You can directly open the print dialog for the preview by clicking the button below:</p>
<button id="fn-print-preview">Print the preview</button>
</form>
</dialog>

View File

@ -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) {