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

Vertical spacing after htmlwidgets #1343

Closed
aoles opened this issue May 14, 2018 · 2 comments
Closed

Vertical spacing after htmlwidgets #1343

aoles opened this issue May 14, 2018 · 2 comments
Milestone

Comments

@aoles
Copy link
Contributor

aoles commented May 14, 2018

Hi,

Similar to paragraphs or code chunks, I believe html widgets should have the small 10px spacer between the bottom of the widget and the succeeding content. Otherwise they "stick" on top of the blocks following them, as it is currently the case (see the example bellow). This could be easily fixed by adding the CSS rule to the default HTML template:

.html-widget {
  margin: 0 0 10px;
}

I'm looking forward to your thoughts on this.

Best,
Andrzej

---
output: html_document
---

```{r}
library(DT)
datatable(cars)
```

```{r}
library(leaflet)
leaflet() %>% addTiles()
```

```{r}
## code
```

widgets

@jjallaire
Copy link
Member

I agree. Here's a PR to address this: #1344

@github-actions
Copy link

github-actions bot commented Nov 3, 2020

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants