harbour-fernschreiber
harbour-fernschreiber copied to clipboard
Landscape layout issues
PR #540 introduced a couple of landscape layout issues.
-
Preview text doesn't use the full width of the bubble:
-
In "own" bubbles everything is aligned to the right, except for the media (image/video/sticker) item:
Yep, now as you say it, I notice that, too.
I don't see it as a bug.
- Preview item is usually limited and short.
- In the near future we might want to display many attachments (as desktop app does). So they will be shown side by side.
However, aligning the items to the right may look good.
This is how my thinking goes.
The preview title takes two lines while it could fit into one if it were wider. That wastes valuable vertical space in the landscape mode.
To save even more space the secondary preview text could be limited (in collapsed state) to 2 lines in the landscape mode vs 3 lines in portrait.
When there will be multiple media items inside the same bubble, the layout will most likely have to change. But that's a separate thing and we are not there yet.
Expanding the preview to fill message width will make it tall. (not the text, but the image).
I understand why the image was narrowed, I meant expanding the preview title (which could be limited to a single line at landscape vs 2 lines in portrait) and the secondary text.
Addressed in updated https://github.com/Wunderfitz/harbour-fernschreiber/pull/548 @monich