You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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:
longText
andhovered
are true (should already pass).longText
is only true when title width > card width.The text was updated successfully, but these errors were encountered: