Skip to content

Inline agent dialog breaks its two-column layout in smaller windows #44530

Closed

Description

@hjlarry

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

Source build at 0d5b00be02. The affected layout is also present on main at bb15220676.

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

  1. Open a Workflow in Studio.
  2. Add an Agent node and choose Start from Scratch, or open an existing inline agent's configuration.
  3. Resize the browser viewport below 1280 CSS pixels wide, for example to 1263 × 772 or 1024 × 768.
  4. Observe the Configure and Build/Preview panels and the dialog's close button.

✔️ Expected Behavior

The inline agent dialog keeps its two-column layout as the window becomes narrower. Both panels shrink with the dialog, configuration content scrolls within its own panel, and the close button stays at the upper-right corner.

❌ Actual Behavior

Below the xl breakpoint, the shared workspace switches to a vertical layout. The Configure panel retains its desktop maximum width and flex basis, leaving a large empty area beside it, while Build/Preview moves below it. The close button moves down with the Build/Preview header into the middle of the dialog.

Reproduced locally at 1263 × 772:

Inline agent dialog before the fix

Activity

  1. added
    🐞 bug
    on Oct 22, 2026
  2. dosubot commented on Oct 22, 2026

    @dosubot

    One useful scoping detail: the standalone Agent Configure page also uses AgentConfigureWorkspace, and explicitly supplies narrow-screen overrides for its Configure panel. The inline dialog uses that same workspace but supplies only min-w-90 for the panel. This gives a concrete difference to investigate rather than changing the shared breakpoint globally. [1] [2]

    The shared workspace applies max-xl:flex-col, and its preview surface also switches to a fixed-height, non-flexing layout below xl. The inline close button is passed into that preview header, explaining why it follows the panel downward. [3] [4] [5]

    I’d scope the layout change to the inline dialog and include the standalone Configure page in regression checks, since its vertical reflow is documented behavior. [6]

    To reply, just mention @dosu.


    Share context across your team and agents. Try Dosu.

    Leave Feedback Learn about dify with Dosu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions