tuskyapp / Tusky

An Android client for the microblogging server Mastodon
https://tusky.app
GNU General Public License v3.0
2.46k stars 387 forks source link

The follow request in the notifications timeline puts the bold style on the wrong part of the text #4045

Open fin-w opened 11 months ago

fin-w commented 11 months ago

The first characters of the title of the follow request notification in the notifications tab are styled bold, rather than the name of the account that's requesting to follow. The length of the characters styled bold seems equivalent to the length of the requesting account's name, but the style is not adjusted to the location of the name as well.

This problem appears in languages where the notification does not begin with the requesting account's name (i.e. Cymraeg, Gaeilge, Gàidhlig). I have searched Weblate in case there are translation errors, and the translated strings seem correct. There is a %s in the strings that seems to represent the requesting account name, which is not being correctly styled as bold in the mentioned languages.

There doesn't seem to be an issue in English, or other languages where the requesting account's name comes first in the notification title.


image image

fin-w commented 9 months ago

Adding to this original issue, since it seems related: in Tusky Test 24.0-a7e0fa26, no part of the name in notification that someone followed you is in bold.

This is the notification after the follow has happened, not the notification with the follow request which the original issue is describing.

Here is an example: note that the name should be in bold to fit with the styling of the other notifications: Screenshot_20231211-014039_Tusky Test_1_1