Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
arsnova-click-v2-frontend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
12
Merge Requests
12
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
ARSnova
arsnova-click-v2-frontend
Commits
ede7ecd4
Commit
ede7ecd4
authored
Nov 30, 2019
by
Christopher Mark Fullarton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes scale of the embedded videos and images
parent
5178aaf4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
src/app/service/custom-markdown/custom-markdown.service.ts
src/app/service/custom-markdown/custom-markdown.service.ts
+2
-2
src/styles/_custom.scss
src/styles/_custom.scss
+2
-1
No files found.
src/app/service/custom-markdown/custom-markdown.service.ts
View file @
ede7ecd4
...
...
@@ -36,7 +36,7 @@ export class CustomMarkdownService {
}
private
postMarkdownRenderer
(
value
:
string
):
string
{
const
iframeOptions
=
`frameborder="0" gesture="media" w
idth="100%" w
ebkitallowfullscreen mozallowfullscreen allowfullscreen`
;
const
iframeOptions
=
`frameborder="0" gesture="media" webkitallowfullscreen mozallowfullscreen allowfullscreen`
;
const
youtubeMatch
=
value
.
match
(
/<a href=".*
(
youtube|youtu
)
.*">.*<
\/
a>/g
);
if
(
youtubeMatch
)
{
...
...
@@ -75,7 +75,7 @@ export class CustomMarkdownService {
const
anchorNode
=
document
.
createElement
<
'
a
'
>
(
'
a
'
);
anchorNode
.
href
=
imgNode
.
src
;
anchorNode
.
target
=
null
;
anchorNode
.
classList
.
add
(...[
'
highslide
'
,
'
d-flex
'
,
'
d-sm-block
'
,
'
justify-content-center
'
]);
anchorNode
.
classList
.
add
(...[
'
highslide
'
]);
anchorNode
.
setAttribute
(
'
onclick
'
,
'
return hs.expand(this);
'
);
anchorNode
.
appendChild
(
imgNode
);
...
...
src/styles/_custom.scss
View file @
ede7ecd4
...
...
@@ -22,8 +22,9 @@ body {
.thumbnail
{
max-width
:
100%
;
max-height
:
20rem
;
max-height
:
400px
;
height
:
auto
;
width
:
auto
;
}
#theme-wrapper
{
...
...
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