Coder Social home page Coder Social logo

alfs-firefox's People

Contributors

thepante avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

fossabot tortious

alfs-firefox's Issues

Bugs in very simplified version using keyboard for toggling.

I reverted back to an earlier version and make it simple as possible for use with the keyboard. The main difference is to use the Alt-J for toggling it.

Here is the Javascript and CSS for them.

Javascript - https://gist.github.com/vonHabsi/57f95e37102b4272a4755392e64ee50e

CSS - https://gist.github.com/vonHabsi/d2c7cbe01bca8cb4c3dbcd97d532f985

Appearance when sidebar is hidden - content is shifted off screen.

What CSS and Javascript is required? Is there some way to check the CSS used in Firefox itself when the sidebar is hidden, then adjust the hiding to match the same CSS? The CSS for displaying it seems perfectly normal

selection_004

Appearance when sidebar is displayed, it appear normal.
selection_003

When sidebar is place on the left hiding it leaves invisible sidebar still floating on top.

I have discovered a bug when it is placed on the left.

It seems that although hiding it changes the opacity to 0, but does not remove it or relocate it. So when a link on the page underneath it is clicked, the actual item clicked is the item in the sidebar which is at the same position but invisible.

This is evident when you pass the cursor over links where the hidden sidebar is. You will see that the cursor does not change when it passes over a link, and the URL does not display at the bottom of the page.

A more obvious is symptom is that TST displays the contents of a collapsed tree in a popup when the cursor hovers over the tab for a few seconds, meaning that sidebar is still present but only transparent.

The line alfs.hidden=false at https://github.com/thepante/alfs-firefox/blob/master/alfs.uc.js#L30 appears to be the culprit, but changing it to alfs.hidden=true results in the recreation of the TST contents when it is shown again, so I'm assuming that setting it to true destroys the TST contents.

My CSS of knowledge is limited but could the line margin-right: calc(-100vh * 0.4); in the .closeit CSS be a bug as well?. I don't know much about CSS, but perhaps that code does not allow for the sidebar being on the left.

  .closeit {
      opacity: 0;
      box-shadow: none !important;
      margin-right: calc(-100vh * 0.4);
      transition-property: opacity;
      transition-duration: 0.15s !important;
  }

I assume that the negative margin-right value moves it off screen when it is on the right-side, but doesn't work when it is on the left. Perhaps display: none may be better?

How can it be set to the standard behaviour, but keep contents of Tree Style Tabs?

After using it for a while I have found that the original behaviour is probably the best for my way of browsing, in conjunction with a keyboard shortcut to hide it and display.

In the default behaviour the sidebar occupies part of the content area instead of floating on top of it. How can that original behaviour be restored, but without having to recreate the TST contents?

Latest build doesn't work.

I have tried the latest build #c814f12 and it doesn't work. #58504bf also exhibited the same problem.

The sidebar contents are empty and the icons and menu items above the sidebar when it is on the left side are cannot be clicked with the mouse. One has to access the menu items with the keyboard when that happens.

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.