WordPress-Android icon indicating copy to clipboard operation
WordPress-Android copied to clipboard

[android] Long title problem on stats cards

Open irfano opened this issue 2 years ago • 0 comments

Expected behavior

The title of the stats cards below should fit in the card.

  • Views & Visitors
  • Total Likes
  • Total Comments
  • Total Followers
  • Latest Post Summary

Actual behavior

There is VIEW MORE button on these cards on the main stats screen. There isn't any button on the detail screen but there is still an empty room for the button on the detail screen.

Steps to reproduce the behavior

  1. Launch Jetpack app.
  2. Navigate to stats screen by using quick links or menu.
  3. If the cards (mentioned above) are not present, go to the stats management (either through ⚙️ menu at the top right hand corner or Add new stats card at the bottom) and add cards and save, then return to Insights.
  4. Check the title in detail screens.
  5. Repeat 1-4 for different languages. We know German has a problem with long titles currently.
Tested on Emulator Pixel 4, Android 12, WPAndroid alpha-375 (1247)

irfano avatar Jul 08 '22 20:07 irfano

Hi @irfano @thehenrybyrd I'd need clarification on this issue please.

olaitanade avatar Aug 11 '22 11:08 olaitanade

Hey @olaitanade ! On some cards, there is a button end of the title. That's why the title is not full-width on the screenshot. We should set the title full-width if there is no button.

irfano avatar Aug 11 '22 11:08 irfano

Alright Thanks @irfano

olaitanade avatar Aug 11 '22 11:08 olaitanade

I am new to wordpress, how do i create a long tittle to test my fix ? @irfano

olaitanade avatar Aug 11 '22 11:08 olaitanade

Views & Visitors Total Likes Total Comments Total Followers Latest Post Summary

Those cards are only available on the Jetpack app. You can update use cases, and use hardcoded titles.

irfano avatar Aug 11 '22 12:08 irfano

Thanks @irfano Done.

olaitanade avatar Aug 11 '22 12:08 olaitanade