diff --git a/src/static/js/tutorial.js b/src/static/js/tutorial.js index dd558c5..b9e65f5 100644 --- a/src/static/js/tutorial.js +++ b/src/static/js/tutorial.js @@ -1607,17 +1607,13 @@ const Tutorial = { var spaceLeft = mRect.left; var spaceRight = vw - mRect.right; var bestSpace = Math.max(spaceLeft, spaceRight); - // Bubble-Breite an verfuegbaren Platz anpassen (min 260px) - var modalBw = Math.min(bw, bestSpace - gap - 8); + // Bubble-Breite an verfuegbaren Platz rechts anpassen (min 260px) + // Modal-Bubbles immer rechts - links ist die Sidebar + var modalBw = Math.min(bw, spaceRight - gap - 8); modalBw = Math.max(modalBw, 260); bw = modalBw; bubble.style.width = bw + 'px'; - // Seite mit mehr Platz waehlen - if (spaceRight >= spaceLeft) { - pos = 'right'; - } else { - pos = 'left'; - } + pos = 'right'; } else { if (pos === 'bottom' && (visBottom + gap + bubbleHeight > vh)) pos = 'top'; if (pos === 'top' && (visTop - gap - bubbleHeight < 0)) pos = 'bottom';