fix: make map-renderer fill parent container for fit-crop-with-fill

Add flex: 1 to map-renderer so it expands to fill the available space
in the parent flex container. Without this, the container would shrink
to fit its content, preventing the aspect ratio calculation from using
the full available viewport.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Thomas Hallock 2025-11-26 06:10:07 -06:00
parent 113af32fc6
commit 18b14766b2
2 changed files with 2 additions and 1 deletions

View File

@ -1566,6 +1566,7 @@ export function MapRenderer({
position: 'relative',
width: '100%',
height: '100%',
flex: 1, // Fill available space in parent flex container
display: 'flex',
alignItems: 'center',
justifyContent: 'center',

View File

@ -14,7 +14,7 @@ export interface CropOverrides {
export const customCrops: CropOverrides = {
world: {
europe: '402.41 97.98 233.00 266.05',
europe: '465.24 257.95 106.49 77.15',
}
}