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

Refactor tab-size /2 #6483

Merged
merged 1 commit into from Apr 10, 2023
Merged

Refactor tab-size /2 #6483

merged 1 commit into from Apr 10, 2023

Conversation

kidonng
Copy link
Member

@kidonng kidonng commented Apr 10, 2023

The selector is not specific enough after previous refactor PR.

#6480 (comment)

I'm leaving out #6480 (comment) fot the moment.

Test URLs

refined-github/sandbox#19

Screenshot

As mentioned in #6480 (review) GitHub has some weird render bug so I think this is probably clearer:

Before After
image image

@kidonng kidonng added the bug label Apr 10, 2023
@fregante
Copy link
Member

Lol GitHub’s bug tricked me:

Screenshot 15

  • one 8-char tab is shown
  • two 4-char tabs are drawn due to --tab-size: 4

😅

Good thing I haven't created a release yet, I was going through some PRs

@@ -8,7 +8,7 @@ There’s also one place where GitHub incorrectly uses the "user configuration"
*/

:root,
.tab-size[data-tab-size='8'] {
.comment-body .tab-size[data-tab-size='8'] {
Copy link
Member

Choose a reason for hiding this comment

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

Indeed, I had trimmed the selector by mistake

@kidonng
Copy link
Member Author

kidonng commented Apr 10, 2023

I made this too complex, should have not made that last commit 😢

@kidonng kidonng merged commit adce5dd into main Apr 10, 2023
13 checks passed
@kidonng kidonng deleted the tab-size-followup branch April 10, 2023 08:29
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.

None yet

2 participants