mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 09:38:54 +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
753 B
TypeScript
19 lines
753 B
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const pdf: TranslationStrings = {
|
|
'pdf.travelPlan': 'Plano de viagem',
|
|
'pdf.planned': 'Planejado',
|
|
'pdf.costLabel': 'Custo',
|
|
'pdf.preview': 'Pré-visualização do PDF',
|
|
'pdf.saveAsPdf': 'Salvar como PDF',
|
|
'pdf.openInSafari': 'Abrir no Safari',
|
|
'pdf.safariHint':
|
|
'O iOS não consegue imprimir pelo app na Tela de Início. O Safari abre esta viagem com a exportação pronta, e lá você pode salvar o PDF.',
|
|
'pdf.pageBreakPerDay': 'Quebra de página por dia',
|
|
'pdf.transportNotes': 'Notas de transporte',
|
|
'pdf.mapTitle': 'Visão geral da rota',
|
|
'pdf.distanceLabel': 'Distância',
|
|
'pdf.mapCredit': 'Contornos dos países: geoBoundaries (CC BY 4.0)',
|
|
};
|
|
export default pdf;
|