Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve rendering of turn-restriction boxes in narrow sidebars #8792

Merged
merged 1 commit into from
Nov 5, 2021

Conversation

tyrasd
Copy link
Member

@tyrasd tyrasd commented Nov 5, 2021

With narrow sidebars, the turn-restriction min-map view glitches out (by being much more zoomed out than can be considered usable).

Before:

This tweaks it such that even for the slimmest sidebar the rendering is still acceptable (i.e. no turn arrows to be rendered completely outside of the viewport) and at the same time allows generous margins to be applied at wider sidebars.

After:

This also fixes a minor bug where the mini-map is not properly alligned vertically.

(the issue was originally reported by @jleedev)

Previously the applied paddings were too large for narrow sidebars, causing the turn-restriction min-map view to be much more zoomed out than needed.
This tweaks the paddings such that even for the slimmest sidebar the rendering is still acceptable (i.e. no turn arrows to be rendered completely outside of the viewport) and at the same time allows generous margins for wider sidebars.

This also fixes a minor bug where the mini-map is not properly alligned vertically
@tyrasd tyrasd added bug A bug - let's fix this! field An issue with a field in the user interface labels Nov 5, 2021
Copy link
Collaborator

@mbrzakovic mbrzakovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested this locally with various sizes and confirming that turn-restriction min-map is behaving correctly now.
Well done

@tyrasd tyrasd merged commit 2f9285e into develop Nov 5, 2021
@tyrasd tyrasd temporarily deployed to workflows November 5, 2021 18:07 Inactive
@tyrasd tyrasd deleted the narrow-turnrestrictions-box branch November 5, 2021 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug - let's fix this! field An issue with a field in the user interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants