Skip to content

small-user-avatars - Adjust spacing - #7004

Merged
fregante merged 7 commits into
refined-github:mainfrom
Katsute:small-user-avatars-ms
Nov 1, 2023
Merged

fregante merged 7 commits into
refined-github:mainfrom
Katsute:small-user-avatars-ms

Conversation

@Katsute

@Katsute Katsute commented Oct 29, 2023 •

Copy link
Copy Markdown
Contributor

Fixes #7002

Adds left margin to user avatars to better match word spacing

Test URLs

Hello world. @Katsute
Hello world. Omniscience
@Katsute
Ordinary

Screenshot

image
↓
image

@ItsHarper

ItsHarper commented Oct 31, 2023 •

Copy link
Copy Markdown

While I much prefer this to the status quo, now there's a little too much margin to my eyes (please forgive the pickiness). In particular, I think the fact that it's still not aligned when a paragraph starts with a mention doesn't look good.

Screenshot 2023-10-31 143308

Screenshot 2023-10-31 143104

@Katsute

Katsute commented Oct 31, 2023

Copy link
Copy Markdown
Contributor Author

image

Comment thread source/features/small-user-avatars.css Resolved
@fregante

fregante commented Nov 1, 2023

Copy link
Copy Markdown
Member

Thanks for looking into this! The issue is due to the image's border not using border but box-shadow, so it doesn't expand the img's box. The border here is 1px so we should match that, it seems that when comparing it to the letter O it aligns decently, while 2px seems too much (especially on a new line)

2px

Screenshot 13

1px

Screenshot 12

@fregante fregante added the bug label Nov 1, 2023
@fregante fregante changed the title small-user-avatars - Add spacing before mention avatars small-user-avatars - Adjust spacing Nov 1, 2023
Comment thread source/features/small-user-avatars.css Resolved
.rgh-small-user-avatars {
margin-left: -3px;
margin-right: 2px !important;
}

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.

Nested CSS like it's 2023😎

@fregante
fregante merged commit 77f0031 into refined-github:main Nov 1, 2023
@Katsute
Katsute deleted the small-user-avatars-ms branch November 1, 2023 17:04
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.

small-user-avatars needs more spacing before a user mention

3 participants