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

Design doc names truncated in sidebar #330

Closed

Conversation

benkeen
Copy link
Member

@benkeen benkeen commented Mar 23, 2015

Long design doc names displayed in the sidebar of the Docs page would
overlap with the rightmost ("+") icon. This truncates them with an
ellipsis and adds a tooltip (just a title attr) to provide a means to
let user see the full design doc name.

@benkeen
Copy link
Member Author

benkeen commented Mar 23, 2015

Before:

screen shot 2015-03-23 at 4 10 03 pm

After:

screen shot 2015-03-23 at 4 00 17 pm

color: @linkColor;
span {
width: 300px;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can do:

width: @sidebarWidth - 30px;

this way it will not break if the sidebar width changes

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call. Thanks!

@robertkowalski
Copy link
Member

left a small suggestion, looks good!

@robertkowalski
Copy link
Member

+1 after addressing it (and travis is green)

@benkeen benkeen force-pushed the truncate-long-view-names-in-sidebar branch 2 times, most recently from bcabf90 to a6a9ac8 Compare March 26, 2015 20:45
@garrensmith
Copy link
Member

@benkeen could you rebase and if tests pass, could you merge.

Long design doc names displayed in the sidebar of the Docs page would
overlap with the rightmost ("+") icon. This truncates them with an
ellipsis and adds a tooltip (just a title attr) to provide a means to
let user see the full design doc name.
@benkeen benkeen force-pushed the truncate-long-view-names-in-sidebar branch from a6a9ac8 to aa7188a Compare March 30, 2015 14:47
@benkeen
Copy link
Member Author

benkeen commented Mar 30, 2015

Closing this PR - travis won't re-trigger for some reason. I'll link the new PR to it.

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.

3 participants