Skip to content

Conversation

@yash-agarwa-l
Copy link
Contributor

@yash-agarwa-l yash-agarwa-l commented Nov 25, 2025

This fixes the layout of images and video thumbnails in the message list for RTL languages.

Previously, these media containers were hardcoded to align to the Left side with padding on the Right, even in RTL mode. Now, they correctly flip to the Right side (the "start" of the message) with padding on the correct side.

This addresses the second RTL issue identified by @gnprice in this comment.

Before

LTR

LTR

RTL

RTL

After

LTR

LTR

RTL

RTL

Since the Difference is very minute, this might help.

LTR RTL

@gnprice gnprice added the maintainer review PR ready for review by Zulip maintainers label Nov 25, 2025
@gnprice
Copy link
Member

gnprice commented Nov 25, 2025

Thanks!

Quick format comment: please avoid @-mentions in commit messages. See this section of our Git style guide:
https://zulip.readthedocs.io/en/latest/contributing/commit-discipline.html#mentioning-other-contributors

The description there is actually a bit forward-looking — GitHub's current behavior, and until next month, is that @-mentions do actually cause notifications. That ends up being spammy, because each time the commit gets rebased (and the rebased version pushed to GitHub), that's a new commit and causes a new notification in the person's inbox.

Previously, these previews (for images and video) were hardcoded
to align to the left, with padding on the right. This resulted
in an incorrect layout in RTL locales.

We now use directional positioning so that the alignment and
padding flip correctly based on the text direction.
@yash-agarwa-l
Copy link
Contributor Author

Thanks for the clarification!
I understand, I've updated the current commit and will be careful about that in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer review PR ready for review by Zulip maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants