feat: add max-width and adjust styling of tooltip image and description text #2115
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Tooltips with long, single word (with dashes or underscores) titles look strange when the template preview image is shown. (See the image below for an example from Superheroes).
This PR fixes the issue by adding a max-width, and setting the image to full width. It also includes an update to truncate the description lines (in this case Brand, Project, etc.) as requested by our team's designer.
Before:
![Screenshot 2024-11-26 at 11 20 23](https://private-user-images.githubusercontent.com/11966742/389903290-03ac86a5-3534-4ba1-b481-dacaf0346df9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MjgzNzcsIm5iZiI6MTczOTQyODA3NywicGF0aCI6Ii8xMTk2Njc0Mi8zODk5MDMyOTAtMDNhYzg2YTUtMzUzNC00YmExLWI0ODEtZGFjYWYwMzQ2ZGY5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDA2Mjc1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFlZjQ0ZDI2NTJjNmFjMjY3ZTUxNzZhNzVjMjFkYjg3MjFlNjk1YTQyNmQxNjJmNzVmMzcxMTZkYjQ5NGQ4NzcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.cs0kj9UdUfF4JDuzOWt789ggMdQi4mHZtknj0fIMyVA)
After:
![Screenshot 2024-11-26 at 11 24 16](https://private-user-images.githubusercontent.com/11966742/389904704-efa357d5-1b72-498e-a343-041979968fbf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MjgzNzcsIm5iZiI6MTczOTQyODA3NywicGF0aCI6Ii8xMTk2Njc0Mi8zODk5MDQ3MDQtZWZhMzU3ZDUtMWI3Mi00OThlLWEzNDMtMDQxOTc5OTY4ZmJmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDA2Mjc1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI1YzNlZmRiMmQ1MjgxYmQ5MDM0YzJjYTQxYjcxMTc0MTA2MDdhZDY2ODk0N2U3ZmYyOWFmNTRlYzc5YTliY2YmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.RoacDK5mMyuEkSLHmwm30jduGTmQYLgdZk10XZQ_4rA)