Skip to content

Fix features relying on .pagehead - #3362

Merged
fregante merged 10 commits into
refined-github:masterfrom
yakov116:ci-link
Jul 19, 2020
Merged

fregante merged 10 commits into
refined-github:masterfrom
yakov116:ci-link

Conversation

@yakov116

@yakov116 yakov116 commented Jul 17, 2020 •

Copy link
Copy Markdown
Member

Selector Update

Fixes #3367

@fregante

Copy link
Copy Markdown
Member

Wait, did they remove the pagehead class? If so, it should be replaced in a bunch of features

@yakov116

Copy link
Copy Markdown
Member Author

@fregante yes and it's not so simple

@kidonng

kidonng commented Jul 17, 2020 •

Copy link
Copy Markdown
Member

Wait, did they remove the pagehead class? If so, it should be replaced in a bunch of features

.gisthead and .pagehead still exists on Gits; .pagehead and .repohead is gone on main site.

It now has a unique .hide-full-screen class, we can probably use that.

@fregante

Copy link
Copy Markdown
Member

That class is not unique enough, it’s a utility class

@yakov116

Copy link
Copy Markdown
Member Author

I dont see anything else 😞. Its all generic classes

@yakov116

Copy link
Copy Markdown
Member Author

This is not going to be fun. There are many more features that are broken.

@yakov116

Copy link
Copy Markdown
Member Author

I fixed some more, I did not add any comments (yet). I really dont see anything we can work with

@yakov116 yakov116 changed the title Fix ci-link Fix features relying on .pagehead Jul 17, 2020
Comment thread source/features/ci-link.tsx Resolved
Comment thread source/features/releases-tab.tsx Resolved
@fregante fregante added the bug label Jul 17, 2020
@fregante

Copy link
Copy Markdown
Member

If supporting the old version gets messy, let's just drop it. GHE users will have to upgrade eventually. Such is life.


// Append to title (aware of forks and private repos)
appendBefore('.pagehead h1', '.fork-flag', icon);
select('[itemprop="name"]')!.after(icon);

@fregante fregante Jul 17, 2020 •

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 works, but it's slightly misaligned

Screen Shot 2020-07-17 at 19 13 03

To fix it, we just need to drop a couple of old styles like top and margin-top from its CSS, and use:

.rgh-ci-link summary .octicon {
    vertical-align: 0;
}

Screen Shot 2020-07-17 at 19 18 43

@fregante fregante left a comment

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.

That's the only thing missing for now. Let's fix it and we'll merge it. For fixes to other features you can open another PR

@fregante
fregante merged commit 0dd3892 into refined-github:master Jul 19, 2020
@yakov116
yakov116 deleted the ci-link branch July 19, 2020 13: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.

ci-link: Cannot read property 'append' of null

3 participants