• Packages
  • Themes
  • Documentation
  • Blog
  • Discussions
Sign in

one-tab

Hide tabs if there is only one tab open in the pane
  • #tabs
  • #tab
  • #hide
blomma
0.10.0 2,614
11
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

One Tab package

This package fixes a shortcoming in the default tabs package that gets shipped with atom, namely that if you have more than one pane it will not properly hide the tab bar.

Some astute observer in the audience might have noticed that in some themes when the tab bar gets hidden we are left with no border on top, this is something that the ui theme sets or not sets depending on how it wants to look.

For a theme like one-ui-dark this is how you add that border back. Add this line to your styles.less. Depending on what theme you have you need to tweak this to make it work.

atom-workspace.theme-one-dark-ui atom-pane-container  {
    atom-pane[data-one-tab="true"] {
        .item-views {
            border-top: 1px solid @pane-item-border-color;
        }
    }
}

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by