Video max width (#12436)

* tooltips 1.0.1

* tooltips 1.0.1

* video width

* addding  to supported attributes for markdown scrubber
This commit is contained in:
ludwiczakpawel 2021-01-26 15:12:37 +01:00 committed by GitHub
parent 9787723bfc
commit 6b0505dc47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -234,11 +234,12 @@ body {
margin: var(--content-rythm) 0;
}
img {
img,
video {
height: auto;
position: relative;
display: block;
margin: auto;
margin: var(--content-rythm) auto;
max-width: 100%;
max-height: calc(50vh + 180px);
border-radius: var(--radius);

View file

@ -10,7 +10,7 @@ class RenderedMarkdownScrubber < Rails::Html::PermitScrubber
self.attributes = %w[
alt class colspan data-conversation data-lang data-no-instant data-url em height href id loop
name ref rel rowspan size span src start strong title type value width
name ref rel rowspan size span src start strong title type value width controls
]
end