sindresorhus/refined-github

Hide "Readme" text from repositories #3580

fregante posted onGitHub

Does anyone have any idea of why this link exists on repo roots like https://github.com/sindresorhus/refined-github?

<img width="201" alt="" src="https://user-images.githubusercontent.com/1402241/93687042-48103100-fa80-11ea-93fd-d589b00b261a.png">

It points to the same page. Should we hide it? It can just be part of refined-github.css:

.BorderGrid-cell [href="#readme"] {
    display: none;
}

This is likely a feature they had for jumping to readme if repo root had a long list of files. Either that or it is put there to not leave "license" alone.

posted by notlmn over 4 years ago

Indeed. Then we should probably remove the feature that collapses the files since it accomplishes the same thing.

posted by fregante over 4 years ago

PR welcome to drop toggle-files-button

posted by fregante over 4 years ago

Let's hide the link instead

posted by fregante over 4 years ago

@fregante should we just put in the css file of toggle-files-button? I was thinking that the reason we want it disabled is because of the feature.

posted by yakov116 over 4 years ago

I was thinking that the reason we want it disabled is because of the feature.

Makes sense, let's not add conditional classes just yet though

posted by fregante over 4 years ago

Fund this Issue

$0.00
Funded

Pull requests