Giter VIP home page Giter VIP logo

Comments (5)

muckSponge avatar muckSponge commented on July 25, 2024 1

I'd like to keep the close button fade in/out transition so we might need to add a width transition too, or a negative left-margin. Will do some experimentation tonight to see what I can come up with.

from materialfox.

Keith94 avatar Keith94 commented on July 25, 2024

Couldn't you add the transition on the display or visibility CSS rules? Not sure, so I leave it up to you.

from materialfox.

muckSponge avatar muckSponge commented on July 25, 2024

Could do, but this will introduce a jarring pop-in because display and visibility properties can't be transitioned. I'm looking for a way to smoothly transition the text clipping.

from materialfox.

muckSponge avatar muckSponge commented on July 25, 2024

I've got a big commit in the works which will drastically change the tab close button behaviour to better match the latest Chrome dev builds.

The buttons will soon be present on background tabs all the time, but they won't clip as much of the tab text and will collapse when the tabs overflow. This is similar to Chrome's behaviour except in Chrome, the close buttons collapse when the tabs reach a certain width. Unfortunately there isn't a CSS-only mechanism for this so I've done my best to compromise.

If I close this issue but you're not satisfied with the outcome, feel free to open another issue and I'll have another crack at conserving the tab text.

from materialfox.

muckSponge avatar muckSponge commented on July 25, 2024

Pushed 1ab2099, which resolves this issue. Behaviour now matches Chrome. All close buttons are visible until tabClipWith is reached. At this point they are hidden properly, except for on selected tab, where it remains visible and replaces the favicon when tab reaches minimum width (36px) and tabs overflow.

from materialfox.

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.