oxyfalcon / firebase_todo

3 stars 2 forks source link

Adding the trailing in display name #18

Open bonamiAkash opened 6 months ago

bonamiAkash commented 6 months ago

The trailing dots have been added but there should be an addition enhancement. Lets say that the name is Vikash. By adding trainling dots with substring length upto 5 will display Vikas... , however this trailing dots take up more space then the original name "vikash" (length -> 6) as compared to "vikas..."

Need to come up with a way so that it can intelligently add triple dots only when required. If Adding trailing dots to a display name causes the string's length to be longer then the original length (for eg, in the "vikash" case), then there should be no trailing dots added then.

Also try to utilize some font size spacing or Fitted box layout so that If the name can fit we reduce the font size by a certain amount

@skfareeduddin