Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Resize tabs when mouse moves away from tab bar #300

Closed
wants to merge 2 commits into from

Conversation

danjordan
Copy link
Contributor

Here's an implementation of the Chrome tabs functionality required in issue #129.

Functionality added...

  • Each tab has it's maxWidth set to it's current width when the mouse enters the tabbarview
  • Each tab has it's maxWidth set to '' when the mouse leaves the tabbarview

@mnquintana
Copy link
Contributor

This is looking good! Would you mind adding some kind of transition to the tabs so they don't just pop to their new size?

@danjordan danjordan changed the title Resize tabs only when mouse moves away from tab bar Resize tabs when mouse moves away from tab bar May 3, 2016
@danjordan
Copy link
Contributor Author

Not sure if you got a notification when I pushed the code, so just letting you know I have added an animation when the tabs move back to max-height.

@rageandqq
Copy link

Any updates on this feature?

@@ -17,6 +17,7 @@
-webkit-flex: 1;
max-width: 175px;
min-width: 40px;
transition: max-width .25s ease-in;
Copy link
Contributor

@simurai simurai Jun 10, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not too critical, but how about ease-in-out? Then it doesn't stop too abruptly.

@simurai
Copy link
Contributor

simurai commented Jun 10, 2016

Tried it out and UX-wise it works great, especially for even sized tabs. 👍

tabs

@mnquintana
Copy link
Contributor

This was added in #344 – thanks again for all your hard work @danjordan! 👏

@mnquintana
Copy link
Contributor

This should land in Atom 1.10

@adamreisnz
Copy link

@danjordan this is the best feature to land in Atom since the first release :D

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants