mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
Issue:Close [BS-2150](https://linear.app/affine-design/issue/BS-2150/图片-filterprocessing-二级菜单时而不出现) In the AI image menu (based on floating-ui): - **Floating element**: Submenu items (e.g., "image filter/image processing") - **Reference element**: Menu item - **Positioning strategy**: `fixed` - **Issue**: Specifying the `container` parameter caused the floating element (submenu) to be mounted to the reference element (menu item), leading to incorrect position calculations when floating-ui updated. ```jsx <menu-item> <submenu-item style={{ position: 'fixed' }}/> </menu-item> ``` - **Fix**: Remove the `container` configuration and mount the `fixed`-positioned floating element to the `body` instead.