diff --git a/app/static/css/partials/_ascroll.scss b/app/static/css/partials/_ascroll.scss index be1dfbd..523779b 100755 --- a/app/static/css/partials/_ascroll.scss +++ b/app/static/css/partials/_ascroll.scss @@ -58,6 +58,16 @@ padding: 20px 20px; font-size: 22px; line-height: 26px; + + figure { + width: 100%; + text-align: center; + } + + img { + margin: auto; + max-width: 100%; + } } } } diff --git a/app/static/js/ascroll.js b/app/static/js/ascroll.js index c0de32b..271b3d2 100644 --- a/app/static/js/ascroll.js +++ b/app/static/js/ascroll.js @@ -219,6 +219,7 @@ function renderAnnotation(config, video, ascroll, annotation) { if (annotation.title) { figcaption = `
${annotation.title}
` } + annotation.value = annotation.value.replace('src="/', `src="${baseURL}/`).replace('href="/', `href="${baseURL}/`) div.innerHTML = `