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

Patch leaflet.css with missing rule about <img> in pane #770

Merged
merged 2 commits into from Feb 3, 2022

Conversation

cderv
Copy link
Contributor

@cderv cderv commented Jan 6, 2022

This PR follows the investigation and closes rstudio/rmarkdown#1949.

Some CSS rules seems to be missing in leaflet.css and we add them in our CSS file.

Issue was <img> in left or right pane not showing as it should because a max-width was set by R Markdown somewhere. leafletJS has specific rule to override such rule https://github.com/Leaflet/Leaflet/blob/e9bc85952d955347bbfd0a2d7909fdc51f08a48a/dist/leaflet.css#L52-L61

See details in rstudio/rmarkdown#1949 (comment) for more context.

@cderv cderv requested a review from schloerke January 6, 2022 19:23
@schloerke schloerke changed the title patch leaflet.css with missing rule about img in pane Patch leaflet.css with missing rule about <img> in pane Feb 3, 2022
@schloerke schloerke merged commit 152c983 into main Feb 3, 2022
@schloerke schloerke deleted the css-rule-img-pane branch February 3, 2022 19:53
schloerke added a commit that referenced this pull request Feb 3, 2022
* main:
  Patch leaflet.css with missing rule about <img> in pane (#770)
schloerke added a commit that referenced this pull request Feb 3, 2022
* main:
  Remove bad test script in package.json
  Use faster versions of system.file()/packageVersion()/is_installed() (#768)
  Patch leaflet.css with missing rule about <img> in pane (#770)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Leaflet Basemaps on Panes not visible
2 participants