paulpflug / foldername-tabs

Adds foldernames to tabs..
MIT License
16 stars 6 forks source link

Filenames completely hidden on narrow tabs #12

Closed emileber closed 8 years ago

emileber commented 8 years ago

When enabled, this plugin only shows the icon and hides the filename on narrow tabs.

atom-foldername-tabs-on

What it should do:

atom-foldername-tabs-off

All the options are at their default value.

My installed packages:

Community Packages (27) C:\Users\emile.bergeron.CAMINO\.atom\packages
├── atom-beautify@0.29.13
├── atom-jinja2@0.5.0
├── atom-terminal@0.8.0
├── autoclose-html@0.23.0
├── color-picker@2.2.2
├── docblockr@0.8.5
├── emmet@2.4.3
├── file-icons@1.7.19
├── foldername-tabs@0.2.1
├── git-plus@5.18.0
├── highlight-selected@0.11.2
├── language-salt@0.4.0
├── linter@1.11.16
├── linter-eslint@7.3.2
├── linter-jshint@3.0.0
├── linter-php@1.2.0
├── merge-conflicts@1.4.4
├── minimap@4.25.0
├── minimap-cursorline@0.2.0
├── minimap-find-and-replace@4.5.1
├── minimap-highlight-selected@4.4.0
├── open-recent@5.0.0
├── pigments@0.36.0
├── sass-compiler-autosave@0.5.0
├── split-diff@1.0.4
├── temporary-root@1.0.1
└── todo-show@1.7.0

└── (empty)

I'm on windows 10 64-bit pro.

ChristopherFunk commented 8 years ago

I am having a similar problem, I am using the Atom-Material-UI theme and when files are opened outside the project or when the tab is too small this happens: (In this case the names are larger than the tab) foldername-tabs1

Looks like the CSS is getting messed up maybe? The Contents of the tab extend below the tab bar in my case here: foldername-tabs2

Disabling this packages makes the file names behave as expected

bradstewart commented 8 years ago

I think this is related to foldername-tabs and the file-icons package. Adding this to my global stylesheet seems to have fixed it:

.file-icons-tab-pane-icon atom-pane .tab-bar {
  .tab .title[data-path]:before {
    position: relative;
    float: left;
    margin-right: 5px;
  }
}
paulpflug commented 8 years ago

cool fix, thanks :+1:

IgorGee commented 7 years ago

I'm having the same issue as @ChristopherFunk

emileber commented 7 years ago

I found that Atom natively shows the folder name on tabs of files with the same name making this plugin unnecessary for me now.

Maybe I'll try the fix if I feel like I would need the folder name on every tab.