Repository navigation
Fix attachment footer overflow in the message reader - #313
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #237.
The reader footer previously grew by one row for every genuine attachment. With 40 files in a 380×360 reader, its body had a negative height and the message could not be read. Removing embedded images in #272 does not address that case.
Attachments now start as a single count with a Show/Hide control. Expanding them reveals an independently scrolling list, limited to 40% of the room left below the header and at most 160 theme-scaled pixels. A short list uses only its natural height. The disclosure and scroll position reset when the selected message or service changes, and messages without attachments reserve no attachment space.
The existing filename/open and save controls remain, including per-mailbox/message routing and save-busy suppression. The attachment list uses inherited theme colors, filenames remain PlainText, and no classification, fetching, saving or backend behavior changes. This PR is independent of #312.
Verification
ui/tests/qml/tst_attachment_footer.qmlwas written before the fix. The final tests were rerun against unchanged main (af8a7ae) with the real standalone controls: six failures, including a −851px body height with 40 genuine files. The patched suite passes all six cases plus setup/cleanup on Qt 6.11.2, with no warnings from the production-control run.make validateran with an isolated Rust build: 640 Rust tests passed, with 11 existing ignored tests; JavaScript and portable shell/source checks passed. It then stopped at the pre-existing host-libcurl-specifictests/test_imap_ordering.shfailure (imap-id must deliver a message body). The Makefile documents why that check depends on the Omarchy libcurl behavior. Aggregate validation is therefore not fully green, and subsequent aggregate stages did not run.tests/run_qml_native.pyusing this checkout's newly compiled backend and the official Qt 6.11.2 Quick Test runner: 1,083 passed, zero failures. An earlier run reused a sibling checkout's backend; the final run does not. The focused attachment tests also pass against the actual standaloneqs.Ui/qs.Commonscontrols.make qml-checkpassed with the Qt 6.11.2 linter (existing unresolved-import/unqualified-access warnings); QML naming, PlainText source checks andgit diff --checkpassed.make test-app-qmlattempt was blocked by unavailable CMake in the direct execution environment. Live Omarchy/standalone-host mouse-and-keyboard verification across platforms remains outstanding.Visual evidence and draft status
Comparable before/after offscreen captures were produced and inspected at 380×360 and 900×600, in light and dark themes at scale 1, using synthetic mail and the actual MessageReader plus standalone theme/control components. They cover the old overflowing footer, the collapsed count, the expanded list and its final file. In the small production-control fixture the patched body keeps 247px collapsed and about 146px expanded, versus −851px before.
These captures are offscreen component renders, not a manual Omarchy desktop session. GitHub-hosted before/after attachments are still pending; the captures are retained locally and were not added to the repository or a media branch. This stays a draft pending GitHub-hosted before/after images and the required manual host verification; the automated checks do not replace those gates.
Release Notes