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:
parent
9787723bfc
commit
6b0505dc47
2 changed files with 4 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue