Skip to content

fix(compose): keep a folded composer inside a narrow reader - #711

Closed
adriadam10 wants to merge 1 commit into
hyprlab:mainfrom
adriadam10:fix/composer-narrow-reader
Closed

adriadam10 wants to merge 1 commit into
hyprlab:mainfrom
adriadam10:fix/composer-narrow-reader

Conversation

@adriadam10

Copy link
Copy Markdown
Contributor

In languages whose labels are longer than English, the folded composer header needs more than the reader's 441-pixel floor (Spanish: 513 px). The composer is drawn as an overlay over the reader, so it was left out of the pane's minimum and, with the window tiled to half of a 1920-pixel screen (960 px, list at 384 px), it ran past the right edge, body text included.

While a composer is in a cover slot, the pane now goes no narrower than the composer's own width request:

  • cover_slot::mount sets measure_overlay on the slot, so a plain GtkOverlay (the contact card) counts the composer.
  • The reader pane is an AdwBreakpointBin, which with breakpoints has no minimum but its own size request, so the slot also raises that request to the composer's while one is in it, following notify::width-request (the composer raises its floor when its header folds), and drops it back to READER_MIN_WIDTH when the slot empties.

The list gives up the difference; the window grows only if the list is already at its minimum.

Checked with the demo build at 960 and 820 px in Spanish and at 960 px in English (no change there: the folded header fits in 441).

In languages with longer labels than English the folded composer header needs more than the reader's 441-pixel floor, and the composer, drawn over the pane, ran past the window's edge. While a composer covers a pane, the pane now goes no narrower than the composer.

Co-Authored-By: Claude <noreply@anthropic.com>
hyprlab added a commit that referenced this pull request Nov 25, 2026
In languages with longer labels than English the folded composer header needs more than the reader's 441-pixel floor, and the composer, drawn over the pane, ran past the window's edge. While a composer covers a pane, the pane now goes no narrower than the composer.

Co-Authored-By: Adrià <57327458+adriadam10@users.noreply.github.com>
@hyprlab

hyprlab commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Thanks for this, got it merged and it will ship in today's beta

@hyprlab

hyprlab commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Agentic reply:

1.50.0-beta.4 is in the repo now. If you've installed Hylki beta as a Flatpak, running flatpak update will pick it up automatically. If not, download and install it first:

flatpak install --user --from https://hylki.hyprlab.co/flatpak/co.hyprlab.Hylki.Beta.flatpakref

AppImage, Debian and RPM betas: See Beta channel for update details.

@hyprlab hyprlab closed this Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants