Skip to content

Conversation

@kidonng
Copy link
Member

@kidonng kidonng commented Aug 9, 2020

Edit: fix removed

Test: #3442

Before:
image

After:
image

---

Test: 429a03a (#3442)

Before:
image

After:
image


Test: 62c3539

Before:
image

After:
image

@kidonng kidonng marked this pull request as ready for review August 9, 2020 19:37
@fregante
Copy link
Member

fregante commented Aug 9, 2020

This should not be necessary, let’s wait and see if GitHub fixes it first

@fregante fregante marked this pull request as draft August 9, 2020 20:39
@fregante fregante marked this pull request as ready for review August 9, 2020 23:54
@kidonng
Copy link
Member Author

kidonng commented Aug 10, 2020

Then let's just add margin to the sticky sidebar, which should better be a separate PR so it can be merged without being constrained by this one.

@fregante
Copy link
Member

Sounds good. Can you create a new github-bugs.css? I don’t want to this having this file becoming a dumping ground for CSS again

Comment on lines 13 to 17
/* Align author name on PR sticky header (https://github.com/sindresorhus/refined-github/pull/3444) */
.sticky-content .author.css-truncate-target {
vertical-align: -4px;
}

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/* Align author name on PR sticky header (https://github.com/sindresorhus/refined-github/pull/3444) */
.sticky-content .author.css-truncate-target {
vertical-align: -4px;
}

Before:
image

I'm not seeing this issue anywhere, with or without RG

Regular: Screen Shot 2020-08-10 at 10 12 02

Stickied: Screen Shot 2020-08-10 at 10 22 53

Copy link
Member Author

Choose a reason for hiding this comment

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

This happens on my Edge and Chrome, but not on Firefox. @yakov116 do you have this problem?

Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe how Chromium handles vertical-align: top is different from Firefox. I added vertical-align: -4px to Firefox and the text's position doesn't change.

Copy link
Member

@fregante fregante Aug 10, 2020

Choose a reason for hiding this comment

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

You likely have some conflicting styles. I'm not seeing that in any browser and I don't expect it to last either way. It should be dropped from this PR

Copy link
Member Author

Choose a reason for hiding this comment

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

You likely have some conflicting styles

How is that possible? I tested it in a newly installed Chrome

Copy link
Member

Choose a reason for hiding this comment

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

🤷‍♂️

Screen Shot 2020-08-10 at 16 53 43

Copy link
Member Author

@kidonng kidonng Aug 10, 2020

Choose a reason for hiding this comment

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

I think I figured out: latest stable Chromium doesn't have this issue, but Chromium Dev does (which affects both Chrome and Edge)

I'm not sure it's something broken by Chromium (which will be fixed by them) or it will broke in the future (it's some rendering changes), but it's fine to remove it right now.

Update on 2020-08-24: Still broken on Chrome Dev 86.0.4238.2 😥 I guess when 86 hits stable (Oct 6) we will need to fix this

@fregante fregante changed the title Minor style fixes Minor style fixes for GitHub bugs Aug 10, 2020
@fregante fregante merged commit 2eff0c9 into refined-github:master Aug 12, 2020
@kidonng kidonng deleted the style branch August 24, 2020 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants