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

Fix inconsistent show-names color #4851

Merged
merged 3 commits into from
Oct 4, 2021

Conversation

MrBartusek
Copy link
Contributor

Fixes #4847

Test URLs

#4821 (comment)

Screenshot

Before
image

After
image

@kidonng
Copy link
Member

kidonng commented Oct 2, 2021

You can change the following lines:

https://github.com/sindresorhus/refined-github/blob/1d858670461a256b29dda730112a0e965b48f6f2/source/features/show-names.tsx#L56-L64

To:

				insertionPoint.after(
					// That obnoxious part is to comfort the linter
					<span className="color-text-secondary">{`${'('}`}
						<bdo className="css-truncate css-truncate-target" style={{maxWidth: '200px'}}>
							{names[userKey].name}
						</bdo>)
					</span>,
				);

@fregante fregante added the bug label Oct 4, 2021
@fregante fregante changed the title show-names fix inconsistent text color Fix inconsistent show-names color Oct 4, 2021
</bdo>,
') ',
<span className="color-text-secondary css-truncate">
(<bdo className="css-truncate-target" style={{maxWidth: '200px'}}>{name}</bdo>)
Copy link
Member

Choose a reason for hiding this comment

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

It'd be great to check whether the maxWidth and the insertionPoint logic are still needed as well, but I'll merge this as is for now

@fregante fregante merged commit 58fa640 into refined-github:main Oct 4, 2021
@fregante
Copy link
Member

fregante commented Oct 4, 2021

Dziękuję za pomoc Bartosz ☺️

@yakov116
Copy link
Member

yakov116 commented Oct 5, 2021

After this PR

image

@waldyrious
Copy link
Contributor

Interestingly, in the comment headers there's a space missing after the name, but in the commit activity entries the space is missing before the name:

Screenshot from 2021-10-06 09-27-24

@MrBartusek MrBartusek deleted the fix-show-names branch October 27, 2021 08:49
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.

show-names text color is inconsistent
5 participants