Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
dc451219
Commit
dc451219
authored
Nov 13, 2019
by
Marc Venturini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change video with to 400 in element_attrs
parent
7f17651a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
changelogs/unreleased/35908-embedded-videos-not-scaled-correctly.yml
...unreleased/35908-embedded-videos-not-scaled-correctly.yml
+5
-0
lib/banzai/filter/video_link_filter.rb
lib/banzai/filter/video_link_filter.rb
+1
-1
spec/lib/banzai/filter/video_link_filter_spec.rb
spec/lib/banzai/filter/video_link_filter_spec.rb
+1
-1
No files found.
changelogs/unreleased/35908-embedded-videos-not-scaled-correctly.yml
0 → 100644
View file @
dc451219
---
title
:
Fixed the scale of embedded videos to fit the page
merge_request
:
20056
author
:
type
:
fixed
lib/banzai/filter/video_link_filter.rb
View file @
dc451219
...
...
@@ -15,7 +15,7 @@ module Banzai
end
def
extra_element_attrs
{
width:
"
100%
"
}
{
width:
"
400
"
}
end
end
end
...
...
spec/lib/banzai/filter/video_link_filter_spec.rb
View file @
dc451219
...
...
@@ -32,7 +32,7 @@ describe Banzai::Filter::VideoLinkFilter do
expect
(
video
.
name
).
to
eq
'video'
expect
(
video
[
'src'
]).
to
eq
src
expect
(
video
[
'width'
]).
to
eq
"
100%
"
expect
(
video
[
'width'
]).
to
eq
"
400
"
expect
(
paragraph
.
name
).
to
eq
'p'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment