foldername-tabs icon indicating copy to clipboard operation
foldername-tabs copied to clipboard

Incompatibility with file-icons plugin

Open pdonias opened this issue 8 years ago • 4 comments

Hi!

I'm using file-icons plugin along with foldername-tabs and I have an issue when a file name is too long.

With file-icons only: capture du 2017-01-12 10-03-38

With foldername-tabs only: capture du 2017-01-12 10-05-46

With both plugins: capture du 2017-01-12 10-03-25

As you can see, when I use both plugins at the same time, the tab name disappears as if both the icon and the text couldn't fit inside the tab.

I'm aware there can be a lot of incompatibilities like this one with all the plugins available on Atom and you can't handle all of them but if there was a way to fix this one, it would be great :)

pdonias avatar Jan 12 '17 09:01 pdonias

I'm also seeing this bug, it looks like the title is being pushed to the next line below the icon but is not visible.

rcrichton avatar Jan 19 '17 14:01 rcrichton

I can't find a good css solution to rectify this, but here is a workaround that works:

Add the following to your Atom stylesheet (Edit > Stylesheet...):

/* fix foldername-tabs package incompatibility - https://github.com/paulpflug/foldername-tabs/issues/15 */
.foldername-tabs {
  width: 0%;
}

rcrichton avatar Jan 20 '17 13:01 rcrichton

I fix it like that :

.foldername-tabs {
  width: 1rem;
}

gregorygenova avatar Mar 30 '17 10:03 gregorygenova

I yolo'ed:

.tab-bar .tab .title {
    display: flex;
    align-items: center;
}

div.foldername-tabs {
    top: 0; /* Adjust for theme */
    width: 100%;
    text-align:left; /* Optional */
}

div.foldername-tabs > span.folder {
    opacity: 0.6;
}

with pleasing results in One Dark theme:

tabtweak

episode17 avatar Apr 03 '17 21:04 episode17