Right now, when you hover over a CollectionItem, the title begins to scroll left and right if the title is more than 20 characters. We want it to scroll if the title is too long to fit within the card instead.
This should be done by measuring the title and card width, and then setting the "longText" variable to true or false (use useState) based on whether title width > card width.
Will also need to write two tests:
Text scrolls when longText and hovered are true (should already pass).
longText is only true when title width > card width.