Skip to content

Shrink tab padding when 7+ tabs exist on Profile - #1763

Merged
fregante merged 2 commits into
refined-github:masterfrom
busches:tab-wrapping-on-profile
Feb 15, 2019
Merged

fregante merged 2 commits into
refined-github:masterfrom
busches:tab-wrapping-on-profile

Conversation

@busches

@busches busches commented Feb 10, 2019 •

Copy link
Copy Markdown
Member

Fixes #1757

Comment thread source/content.css Outdated
transform-origin: 90% top;
}

/* Fix wrapping text on tabs when gists tab is enabled on profile #1757 */

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This needs to mention the name of the gists tab feature

Comment thread source/content.css Outdated

/* Fix wrapping text on tabs when gists tab is enabled on profile #1757 */
nav.UnderlineNav-body a:nth-last-child(n+7).UnderlineNav-item,
nav.UnderlineNav-body a:nth-last-child(n+7).UnderlineNav-item ~ * {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You probably don’t need nav.UnderlineNav-body a in both. Use .UnderlineNav-item:nth-last-child(n+7)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@sindresorhus is there a stylelint rule to enforce the order in compound selectors? e.g. .hello:nth-child(1) instead of :nth-child(1).hello

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I went with something specific as I wasn't sure everywhere this class was used, I can see it both ways.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is there a stylelint rule to enforce the order in compound selectors? e.g. .hello:nth-child(1) instead of :nth-child(1).hello

No, but you should request it. That would be a useful rule.

@fregante fregante added the bug label Feb 12, 2019
@ZYSzys

ZYSzys commented Feb 13, 2019

Copy link
Copy Markdown

ping @busches .

Thanks for your effort, could you please land @bfred-it suggestion so that this can be merged ?

The bug is really annoying for me.

Thanks again :)

@busches

busches commented Feb 13, 2019

Copy link
Copy Markdown
Member Author

@ZYSzys I will hopefully get back to this tonight, if you want to finish it, you are more than welcome to.

@busches
busches force-pushed the tab-wrapping-on-profile branch 2 times, most recently from ebfe2b9 to e87bd97 Compare February 14, 2019 02:42
@sindresorhus

Copy link
Copy Markdown
Member

This doesn't solve it for me. It still looks buggy:

screen shot 2019-02-14 at 13 10 41

I had to reduce it to 6px for it to look ok for me. macOS 10.14.3.

@busches

busches commented Feb 15, 2019

Copy link
Copy Markdown
Member Author

@sindresorhus your profile looks fine on Windows 10 at 8px. Do you want me to make it 6px globally or detect OSX and make it 6px then?

@sindresorhus

Copy link
Copy Markdown
Member

Make it 6px globally. System detection is a slippery slope. Maybe Linux needs 7px. And maybe the next Windows version changes the font so it now needs 6px too.

@fregante
fregante merged commit 5b5ed7d into refined-github:master Feb 15, 2019
@busches
busches deleted the tab-wrapping-on-profile branch April 23, 2019 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

4 participants