Skip to content

Connection Info modal: header scrolls out of view #1754

Description

@cliffhall

Follow-up to #1698. The Connection Info modal (clients/web/src/components/groups/ConnectionInfoModal/ConnectionInfoModal.tsx) has the same structure the settings modals had before #1698 — a custom header Group (title + close) inside a Stack in the modal body, with the default <Modal> and no scrollAreaComponent. So when the connection details are long enough to overflow the viewport, the whole modal scrolls and the header (title + close) scrolls out of view.

Expected

  • The Connection Info header stays visible on scroll.
  • Only the content area below it scrolls.

Scope

  • clients/web/src/components/groups/ConnectionInfoModal/ConnectionInfoModal.tsx

Fix

Apply the same change used for the settings modals in #1698 (PR #1753): switch from the default <Modal> to the compound Modal.Root / Modal.Overlay / Modal.Content / Modal.Header / Modal.Body API, move the header row into Modal.Header, and set scrollAreaComponent={ScrollArea.Autosize}. The fade-down transition is already supplied app-wide by ThemeModalRoot (added in #1753), so no transitionProps literal is needed.

Metadata

Metadata

Assignees

Labels

v2Issues and PRs for v2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions