diff --git a/packages/uikit-workshop/src/scripts/components/modal-viewer.js b/packages/uikit-workshop/src/scripts/components/modal-viewer.js index 3052b77a6..ca919894b 100644 --- a/packages/uikit-workshop/src/scripts/components/modal-viewer.js +++ b/packages/uikit-workshop/src/scripts/components/modal-viewer.js @@ -230,7 +230,7 @@ export const modalViewer = { if (i + 1 === pos) { els[i].classList.add('pl-is-active'); - scrollTo(patternInfoElem, document.body, { + scrollTo(patternInfoElem, { top: els[i].offsetTop - 14, behavior: 'smooth', }).then(function () {