refined-github icon indicating copy to clipboard operation
refined-github copied to clipboard

`latest-tag-button` causes "Use this template" overlap

Open fregante opened this issue 5 years ago • 5 comments

Please ensure:

  • [X] The bug is caused by Refined GitHub. It doesn't happen if I disable the extension.

Include in this issue:

  • [X] Screenshots/video/gif demonstrating the bug, if it’s visual
  • [ ] Console errors, if any

Description

Window width between 600 and 1000px

Screen Shot 16

I'm not sure about what we should do though

Example URL

https://github.com/fregante/browser-extension-template

Browser(s) used

Safari

fregante avatar Nov 14 '21 18:11 fregante

Even before the button collides with the sidebar, this happens (around 1100px wide):

image

The obvious solution would be to hide our own button, but if we don't want to do that, how about moving "Use this template" to the top of the sidebar? Or maybe just under the repo description?

cheap-glitch avatar Nov 15 '21 11:11 cheap-glitch

Time to make it an icon with clean-repo-filelist-actions

@cheap-glitch what's with that "Code" label? Did clean-repo-filelist-actions fail to remove it?

kidonng avatar Nov 15 '21 17:11 kidonng

Time to make it an icon with clean-repo-filelist-actions

I don't know, what icon could convey the meaning unambiguously? This is probably not a button frequently seen by users, so it might get confusing.

what's with that "Code" label? Did clean-repo-filelist-actions fail to remove it?

Nice catch, apparently GitHub dropped the icon so the selector doesn't work anymore. Edit: opened #5074

cheap-glitch avatar Nov 15 '21 17:11 cheap-glitch

Possible solution, similar to:

  • https://github.com/refined-github/refined-github/pull/5623
flex-wrap: wrap;
gap: 8px;
justify-content: flex-end;
Screen Shot 3

It needs the same fix we applied in #5623 for the duplicate margins. Alternatively, use gap: 0 8px and just drop the margin-right on the green element.

Needs testing on several repos. We could also disable the hiding of tags and branches:

Screen Shot

fregante avatar May 21 '22 06:05 fregante

Button’s gone 😍

ko

fregante avatar Jan 30 '23 18:01 fregante