Skip to content

Commit

Permalink
spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
sirmmo committed Nov 27, 2024
1 parent ffee27a commit cd36ffd
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/app/pages/MapPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -391,27 +391,26 @@ export function MapPage(props: MapPageProps) {
}
- ${labelFor(currentMap.year_period)}
${currentYear ? ` - Anno ${currentYear}` : ''} © ARPAV - Arpa FVG`; // string or function, added caption to bottom of screen
const filename = `Screenshot ${labelFor(currentMap.climatological_variable)}
- ${joinNames([
let filename = `Screenshot ${labelFor(
currentMap.climatological_variable,
)} - ${joinNames([
labelFor(currentMap.climatological_model),
labelFor(currentMap.scenario),
])}
- ${joinNames([
])} - ${joinNames([
labelFor(currentMap.aggregation_period),
labelFor(currentMap.measure),
])}
${currentMap.time_window && currentMap.aggregation_period === '30yr'
? ' - ' + labelFor(currentMap.time_window)
: ''
}
- ${labelFor(currentMap.year_period)}
${year ? ` - Anno ${year}` : ''}.${
} - ${labelFor(currentMap.year_period)} ${currentYear ? ` - Anno ${currentYear}` : ''
}.${
//@ts-ignore
navigator?.userAgentData?.platform.toLowerCase().indexOf('linux') >= 0
? 'jpg'
: 'png'
}`.replaceAll('_', '');
}`;
filename = filename.replaceAll('_', '');
mapScreen
.takeScreen(format, {
captionFontSize: isMobile ? 10 : 12,
Expand Down

0 comments on commit cd36ffd

Please sign in to comment.