Skip to content

Padding and margin issues at bottom-right. Increasing the viewport size and pushing the copyright down. #516

Description

@casertap

Placing the component with config

    const geocoder = new MapboxGeocoder({
      accessToken: mapboxgl.accessToken,
      mapboxgl: mapboxgl,
      collapsed: true,
      flyTo: { duration: 0 },
      clearOnBlur: true,
    });
    map.addControl(geocoder, "bottom-right");

will creating a padding css issue that will create an horizontal scroll and some white background on the right.

Screenshot from 2023-11-07 00-17-23

expanding it using the mouse would fix the right padding but create a bottom margin that is pushing the copyright out of the map and create a vertical scroll.

Screenshot from 2023-11-07 00-16-44

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions