Skip to content

Latest commit

 

History

History
10 lines (10 loc) · 725 Bytes

2022-04-12-add-dynamic-positioning-on-link-flyout.md

File metadata and controls

10 lines (10 loc) · 725 Bytes
title issue author author_email
Add dynamic positioning on link flyout
NEXT-20977
Luka Brlek

Administration

  • Added --flyoutLinkLeftOffset for .sw-text-editor-toolbar-button__children in sw-text-editor-toolbar-button.html.twig to position the link flyout dynamically back inside the viewport.
  • Added --arrow-position in /sw-text-editor-toolbar-button/sw-text-editor-toolbar-button.scss for the sw-text-editor-toolbar-button__children:before element to be positioned right below the toolbar link icon.
  • Added positionLinkMenu method in /sw-text-editor-toolbar-button/index.js that calculates the --flyoutLinkLeftOffset and the --arrow-position css variables on resize.