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

CSS: Fix line break for long key-value strings #580

Merged
merged 3 commits into from
Sep 24, 2022

Conversation

tordans
Copy link
Contributor

@tordans tordans commented Mar 28, 2022

break-all forces a line break for long strings (https://developer.mozilla.org/en-US/docs/Web/CSS/word-break).

before

after

tordans added a commit to tordans/tileserver-gl that referenced this pull request Mar 28, 2022
After maptiler#580, this change clarifies the table layout by keeping the strings with line break closer and giving some space to the next line.
acalcutt added a commit to acalcutt/tileserver-gl that referenced this pull request May 8, 2022
@acalcutt
Copy link
Collaborator

this has to be updated a bit for the current version. mapbox-gl-inspect.css no longer exists, but the fix works in https://github.com/maptiler/tileserver-gl/blob/master/public/resources/maplibre-gl-inspect.css if 'mapbox-gl' is replaced with 'maplibregl'

Copy link
Collaborator

@acalcutt acalcutt left a comment

Choose a reason for hiding this comment

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

I've used this and it works. I updated it for maplibre-gl-inspect

@acalcutt acalcutt merged commit a5459fb into maptiler:master Sep 24, 2022
@tordans tordans deleted the patch-2 branch September 24, 2022 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants