fix: attachment preview header layout issues - WPB-23931#4491
fix: attachment preview header layout issues - WPB-23931#4491WilhelmOks wants to merge 2 commits intorelease/cycle-4.17from
Conversation
Test Results266 tests 265 ✅ 31s ⏱️ For more details on these failures, see this check. Results for commit 5f4fc38. ♻️ This comment has been updated with latest results. Summary: workflow run #23546286259 |
|
jullianm
left a comment
There was a problem hiding this comment.
It does fix the issue in conversation previews however it also changes the layout (height) of draft previews which might be acceptable but I think it's better to keep the draft previews as it was before
…em equal height in the draft carousel
|
In the latest commit I changed it for the draft previews to keep the same bubble height as the other elements in the list |



Issue
In the file attachment header, the space between the first line (file icon and file type) and the second line (file name) was too large.
The issue was that in many places the size was set to take up maximum space, either through
maxHeight: .infinityor throughSpacer(). Then to reduce the height, an explicit height was set (height: 74).This not only caused the layout issues but also broke the UI when the font size was set to very large.
I fixed it by removing the indefinite growing and the explicit heights.
Additionally I added a gray background and some padding in SwiftUI Previews to better see if there are issues with the layout.
Testing
Send messages with attachments of different files and check if the header layout is ok.
Especially the space between the file type and the file name should not be too large.
Most important to check are video files and documents.