popcode
popcode copied to clipboard
set title width to fill available area and truncate any additional text
In this commit the following changes are made:
- Eliminated an unused selector in css
.preview__title - Added a selector
.preview__title-text - Added rules to limit title text to no more than 100% width minus 75px for the three icons in the same row
- Truncated the title when there is not enough room to display the full text
Note: the title is still centered as the parent element has text-align:center;