Hangzhou Through the Years - Haoyu Zhu#25
Open
haoyu25 wants to merge 27 commits intoWeitzman-MUSA-JavaScript:mainfrom
Open
Hangzhou Through the Years - Haoyu Zhu#25haoyu25 wants to merge 27 commits intoWeitzman-MUSA-JavaScript:mainfrom
haoyu25 wants to merge 27 commits intoWeitzman-MUSA-JavaScript:mainfrom
Conversation
mjumbewu
reviewed
Nov 3, 2025
| } | ||
|
|
||
| .popup-image { | ||
| width: 100%; |
There was a problem hiding this comment.
suggestion: The images you've included in the popups look so nice -- I'd say make them a little bigger. By default, Leaflet will match the width of your popup to the width needed by the content contained in it. Since you set the width of your images to 100%, you're instructing the browser to first calculate with the width of the container (the popup) should be, and then set the width of the image, so the image itself has no say over the width of the popup. If you add a min-width to this rule, you're instructing the browser to:
- Calculate with the width of the container (the popup) should be without considering the image, because of the
width: 100% - If that width is more than
300px(because of themin-width: 300pxbelow), then use that width as the width of the image. - If that width is less than
300px, then enforce the width of the image as 300px and recalculate the width of the parent container.
Suggested change
| width: 100%; | |
| width: 100%; | |
| min-width: 300px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This story map shows the urban growth and green space development in Hangzhou, China, from 1990 to 2020. It highlights key parks and urban areas over time, showing how the city integrates natural spaces with urban expansion. The map is designed for both Hangzhou residents and urban planners interested in urban development and green space planning.