There is a problem I am facing where the user's name becomes too long, but only in mobile view. I need to apply the text-ellipsis CSS property for this issue. Here's a screenshot: https://i.sstatic.net/T6vi3.png
Prior to adding the styles mentioned in the image, the text "jadakiss from the gu lox is the shiiiiiiiiit" was breaking after "the," with part of it hidden behind the rating and location. To address this, I included
white-space:nowrap; overflow-x:hidden; text-overflow:ellipsis
within the <a />
tag housing the text, set a fixed width on the div container, and added a red border for visibility.Despite my efforts, the ellipsis CSS property is not working as expected. Can someone point out what might be missing? Any help or suggestions would be greatly appreciated!