Skip to content

Commit 7fd6928

Browse files
committed
[Links] Fix positioning of dragged link in links editor (#189122)
## Summary Fixes positioning of dragged links in the Links panel editor. The issue was caused by the `transform: translateZ(0)` workaround in EUI to fix a [mask image bug](elastic/eui#7855) in Chromium. We fix this by overriding the `transform` for in the `FlyoutBody` of the Links panel editor. Before: https://github.com/user-attachments/assets/8ad10732-dfaa-4464-845b-0a9c4fc6b173 After: https://github.com/user-attachments/assets/e6f0bffe-7eb0-4590-affc-a89bc86b973d (cherry picked from commit e566abf)
1 parent c139f23 commit 7fd6928

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/plugins/links/public/components/editor/links_editor.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,12 @@ const LinksEditor = ({
173173
</EuiFlexItem>
174174
</EuiFlexGroup>
175175
</EuiFlyoutHeader>
176-
<EuiFlyoutBody>
176+
<EuiFlyoutBody
177+
// EUI TODO: We need to set transform to 'none' to avoid drag/drop issues in the flyout caused by the
178+
// `transform: translateZ(0)` workaround for the mask image bug in Chromium.
179+
// https://github.com/elastic/eui/pull/7855.
180+
css={{ '.euiFlyoutBody__overflow': { transform: 'none' } }}
181+
>
177182
<EuiForm fullWidth>
178183
<EuiFormRow label={LinksStrings.editor.panelEditor.getLayoutSettingsTitle()}>
179184
<EuiButtonGroup

0 commit comments

Comments
 (0)