Adapt panel tab size to content


#1

Hello,

I don’t know if it’s possible, but I have been struggling to dynamically adapt the panel tab size to its content (title) without any success.

So is it possible ?

Thank you very much in advance.


#2

Are you talking about the tabs of the open files? If so, the settings are in the tabs package.

Edit: No they’re not. They are in the UI theme settings (see below)


#3

Thank you for your response.

I have taken a screenshot:

Hoping I was clearer.

Thank you very much in advance.


#4

I’m still a little confused; do you want the size of the entire right hand pane (the one with the Settings tab) to change width dynamically?

Or are you talking about the little rectangles in the tab bar?


#5

Thank you.

I am talking about the rectangles/tabs. If a title (name of the file) is too long the tab won’t adjust it’s size. It will stay the same. I would like to see the entire file name.

Thank you in advance.


#6

Found this

Same method. Go to your current UI theme and select Maximum tab sizing. This will show an entire file name if possible.


#7

Thank you.

For atom material it’s indeed quite the same.

Just one last question, I suppose it’s not possible to do it vs styles.less ?

Thank you in advance.


#8

It sure is.

.tab-bar .tab {
  max-width: 100%;
}

#9

Thank you very much for your help :smile: