User listing in search results: reduce size of cards that are currently too long #82

Closed
opened 2022-12-31 03:29:04 +00:00 by mummified-corroding-granny · 0 comments

Kindly,

This is a very minor thing and is currently (TM) very infrequent. Appears to be less than 1% of non-empty profiles for sure. Also might go against the design philosophy of the project. Example at the end of this message

When using the user search tabs (user_listing flask template), there are some pages or user cards (HTML div for each user) that are too long.

There are a few ways to handle this but I'll just leave some facts here:

  • bio limit is 1500 characters long so there are ways to still pollute the search results like having every few lines contain a dot
  • removing all newlines would be a crap solution
  • trivial to insert a prune in the jinja filter that prints the bio. Something like:
... safe | truncate(50)

Example

For example, when searching for "florist", the following user has their card included in the search results:

https://rdrama.net/@carpathiamflorist

Below the image there are multiple pages of whitespace requiring a lot of scrolling. On a smartphone appears even worse but you can at least see the scroll bar moving.

Currently (TM), @carpathiamflorist's bio section in the profile is just a bunch of newlines due to some attempt at a penis joke (very large background image maximizes the zoom on the thing)

Kindly, This is a very minor thing and is currently (TM) very infrequent. Appears to be less than 1% of non-empty profiles for sure. Also might go against the design philosophy of the project. Example at the end of this message When using the user search tabs (user_listing flask template), there are some pages or user cards (HTML div for each user) that are too long. There are a few ways to handle this but I'll just leave some facts here: - bio limit is 1500 characters long so there are ways to still pollute the search results like having every few lines contain a dot - removing all newlines would be a crap solution - trivial to insert a prune in the jinja filter that prints the bio. Something like: ``` ... safe | truncate(50) ``` ----- ## Example For example, when searching for "florist", the following user has their card included in the search results: https://rdrama.net/@carpathiamflorist Below the image there are multiple pages of whitespace requiring a lot of scrolling. On a smartphone appears even worse but you can at least see the scroll bar moving. Currently (TM), @carpathiamflorist's bio section in the profile is just a bunch of newlines due to some attempt at a penis joke (very large background image maximizes the zoom on the thing)
Sign in to join this conversation.
There is no content yet.