Hello,
Recently I found that people who have really long profile cards on mobile are actually cut off (for example the picture below the badges) @Qantas094 thanks ![]()
Is there anyway to truncate them?
Thanks.
The discussion addresses an issue where long user profile cards on mobile devices are being cut off, particularly affecting badge visibility. ondrej reports the problem and asks about truncation options, specifying a Sony Xperia XZ with a 5.2-inch screen. david responds by seeking device details for testing. awesomerobot explains that recent changes have been implemented to limit the height of the user field section, making it scrollable when too long and truncating individual fields after three lines. This ensures the profile card remains functional even on small devices like those with a 350x450 resolution, with a commit link provided for reference awesomerobot.
Hello,
Recently I found that people who have really long profile cards on mobile are actually cut off (for example the picture below the badges) @Qantas094 thanks ![]()
Is there anyway to truncate them?
Thanks.
Hi @ondrej - weโll see if we can make some tweaks to improve this. What device are you using there (so we can test on the right screen size)?
Sony Xperia xz: size = 5.20-inch touchscreen
Iโve added some restrictions to mobile that will cap the maximum height of the user field section, makes the section scrollable if itโs very long, and truncates each individual user field after 3 lines. So even on the tiniest devices (350x450) it should be somewhat difficult to get your card to overflow.
https://github.com/discourse/discourse/commit/cd5b7109d04722df5c39b2ded9fa4ead6c290ce4
This topic was automatically closed after 2 days. New replies are no longer allowed.