Skip to content
refs

fix(map): fit the map to its frame when the frame reaches its full height

Amancommitted Dec 1, 20260812d77parent 86c0d19

The map fitted itself before the navigator grew to the height of the window, so on first load it showed as a small strip at the top of the map area.

1 decision

Refit the map whenever its frame changes size, until the reader pans or zooms it.

Why

  • The frame gets its height after the map's first fit, because it fills down to the bottom of the window.
  • Once the reader has moved the map, a refit would throw away their place.

Touches

  • map-view.tsx
1 file changed · +10 −3
apps/frontend/components/code-map/map-view.tsx+10 −3