mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-27 15:17:30 +00:00
f8e51cb83d
An iPhone or iPad running TREK from the Home Screen ignores print(), in the page and in an iframe alike, so "Save as PDF" in the preview did nothing there. Mobile Safari prints the same preview fine. In the installed iOS app the preview now shows "Open in Safari" in place of the dead button, with a line saying why. The link opens the trip with ?export=pdf, and both shells open their export dialog or sheet for it, so the PDF is one tap away once Safari is up. The parameter is dropped once read and survives the login redirect. Everywhere else the preview prints as before. The preview overlay moves out of TripPDF.tsx into pdfPreview.ts, which TripPDF had no room left for under lint:size, and its backdrop and stacking now use the --overlay and --z-modal tokens.
19 lines
722 B
TypeScript
19 lines
722 B
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const pdf: TranslationStrings = {
|
|
'pdf.travelPlan': 'Cestovní plán',
|
|
'pdf.planned': 'Naplánováno',
|
|
'pdf.costLabel': 'Náklady',
|
|
'pdf.preview': 'Náhled PDF',
|
|
'pdf.saveAsPdf': 'Uložit jako PDF',
|
|
'pdf.openInSafari': 'Otevřít v Safari',
|
|
'pdf.safariHint':
|
|
'iOS neumí tisknout z aplikace na ploše. Safari otevře tento výlet s připraveným exportem a tam si PDF uložíte.',
|
|
'pdf.pageBreakPerDay': 'Zalomení stránky pro každý den',
|
|
'pdf.transportNotes': 'Poznámky k dopravě',
|
|
'pdf.mapTitle': 'Přehled trasy',
|
|
'pdf.distanceLabel': 'Vzdálenost',
|
|
'pdf.mapCredit': 'Obrysy zemí: geoBoundaries (CC BY 4.0)',
|
|
};
|
|
export default pdf;
|