Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set title width to fill available area and truncate any additional text #2525

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

werner33
Copy link

@werner33 werner33 commented Apr 1, 2023

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;

Screen Shot 2023-04-01 at 7 08 46 PM

Screen Shot 2023-04-01 at 7 08 39 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant