Giter Site home page Giter Site logo

Comments (3)

hzoo avatar hzoo commented on June 15, 2024 1

If anyone wants to submit a PR that would be great! (yep it's super old code and very hacky)

from contributors-on-github.

dwijnand avatar dwijnand commented on June 15, 2024

I'm no CSS expert, but I've got it out of the way for right now by adding

ul.dropdown-menu.dropdown-menu-sw {
  display: none;
}

to the custom CSS in Refined GitHub's options.

from contributors-on-github.

kidonng avatar kidonng commented on June 15, 2024

What an old extension 😅

For anyone who wants to work on a fix, try this:

let dropdown = `<div class="dropdown js-menu-container" style="display: inline-block">
<button class="btn-link muted-link js-menu-target">
<span id="gce-dropdown-text">in this repo</span>
<span class="dropdown-caret"></span>
</button>
<div class="dropdown-menu-content diff-options-content js-menu-content">
<ul class="dropdown-menu dropdown-menu-sw">
<div class="dropdown-header">
View options
</div>
<a class="dropdown-item selected" id="gce-in-this-repo">
${$checkbox}
in this repo
</a>
<a class="dropdown-item" id="gce-in-this-org">
in this org
</a>
<a class="dropdown-item" id="gce-in-this-account">
in this account
</a>
</ul>
</div>
</div>`;

   let dropdown = `<details class="dropdown" style="display: inline-block"> 
     <summary class="btn-link muted-link"> 
       <span id="gce-dropdown-text">in this repo</span> 
       <span class="dropdown-caret"></span> 
     </summary> 
     <details-menu class="dropdown-menu-content diff-options-content"> 
       // These classes should go to <details-menu>, but I don't know how this extension handle styles, so left it as is
       <ul class="dropdown-menu dropdown-menu-sw"> 
         <div class="dropdown-header"> 
           View options 
         </div> 
         <a class="dropdown-item selected" id="gce-in-this-repo"> 
             ${$checkbox} 
           in this repo 
         </a> 
         <a class="dropdown-item" id="gce-in-this-org"> 
           in this org 
         </a> 
         <a class="dropdown-item" id="gce-in-this-account"> 
           in this account 
         </a> 
       </ul> 
     </details-menu> 
   </details>`; 

from contributors-on-github.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.