发布

  • [OPIK-3225] [FE] Fix drag-and-drop horizontal overflow in reordering (#5087)

    frostbyte_neo 发布于 2026-02-05 10:53:25 +00:00

    Add restrictToVerticalAxis modifier to DndContext components to prevent
    dragged items from moving horizontally outside the container bounds.

    Also fix height distortion in Playground messages by using CSS.Translate
    instead of CSS.Transform to avoid scale transformations during drag.

    Affected components:

    • LLMPromptMessages (Playground message reordering)
    • LLMPromptMessage (fix height distortion)
    • SortableMenuSection (Columns menu reordering)
    • GroupsContent (Groups panel reordering)
    • GroupsButton (Groups popover reordering)

    Co-authored-by: Claude Opus 4.5 noreply@anthropic.com

    下载附件