MM-68938 Fix clipped policy editor tooltips (#36684) (#36763)

Automatic Merge
This commit is contained in:
Mattermost Build
2026-05-27 17:24:08 +02:00
committed by GitHub
parent 71b304f3ff
commit 15dcff60d1
2 changed files with 3 additions and 0 deletions
@@ -25,6 +25,7 @@ const MONACO_EDITOR_OPTIONS: monaco.editor.IStandaloneEditorConstructionOptions
extraEditorClassName: 'policyEditor',
language: POLICY_LANGUAGE,
automaticLayout: true,
fixedOverflowWidgets: true,
minimap: {enabled: false},
lineNumbers: 'off',
scrollBeyondLastLine: false,
@@ -16,6 +16,7 @@ import {
useTransitionStyles,
FloatingArrow,
flip,
shift,
useMergeRefs,
} from '@floating-ui/react';
import classNames from 'classnames';
@@ -126,6 +127,7 @@ export function WithTooltip({
flip({
fallbackPlacements: placements.fallback,
}),
shift({padding: OverlayArrow.OFFSET}),
arrow({
element: arrowRef,
}),