wordpress-mobile / wordpress-mobile/WordPress-Android

Posts Card: RTL alignment and mixed alignment

Open
#15,851 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Pri] Low [Type] Bug /My site i18n My Site Dashboard
Dominant language
Kotlin
Stars
3.2k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
69

Description

Expected behavior

I expected posts to be aligned based on their content language.

Actual behavior

Instead, posts are aligned based on the app selected language.

Steps to reproduce the behavior
  1. Prepare at least one Arabic and at least one English draft post. (Or, one RTL and one LTR)
  2. From Me > App Settings, set your language to a LTR language like English.
  3. In My Site, looking at the Drafts Card, notice that your RTL post doesn't look fully right-aligned.
  4. From Me > App Settings, set your language to a RTL language like Arabic.
  5. In My Site, looking at the Drafts Card, notice that your LTR post doesn't look fully left-aligned.
Screenshots

Left: English is App language.
Right: Arabic is App language.

For comparison, here's how those posts are displayed in the Posts List.
Left: English is App language.
Right: Arabic is App language.

Tested on Nokia 2, Android 11, WPAndroid 19.0

cc: @ParaskP7 something for the My Site Dashboard team to consider!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in My Site's Drafts Card and compare it with the Posts List, reproducing the issue with mixed Arabic and English draft posts. Check the behavior after changing the app language through Me > App Settings; done means each post is aligned according to its content language, regardless of the selected app language.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
internationalization, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.