-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows: the X to close an editor should be on the right #7058
Comments
|
We think that we want to keep all tabs the same width up to a maximum width but we would not let them span the entire width even if it is free. For example, if the max width is 200px and all tabs are smaller than 200px, we just use that. If one tab is larger, it gets the extra size and takes it away from the other tabs if possible. We would still try to keep all other tabs equal width if possible. We think that we do not want to crop the tab title (name of the file) at all, so once a tab title is cropped, it pushes other tabs out of the view. That way you do not end up with tiny cropped tabs that are hard to use and in most cases all tabs should show up with equal width.
Every group has its own concept of tabs and actions, so a split duplicates the little action area where you see the "...", split action and stacks action.
I would not put the path of the file below the tab because there is likely not enough space if we keep the title height of the editor part.
We want to try this design to emphasize the fact that there are actions targeting the currently active editor and actions that target the group. Having all of the actions mix together is not very intuitive. So we would like to try a design where this becomes clearer. I would try it out to see how bad the experience is and then continue the discussion. If the background color looks like screen cheese we can also just try to put a separator between editor actions and the group actions. |
Space's going to be pretty tight once we start duplicating that three-action box.
Meaning: it will not be put anywhere?
The experience isn't going to be bad: the actions are useful and visible; it just doesn't look good. A separator would fix it perfectly. |
@alexandrudima I am not sure why you are so opposed to putting actions into the area to the right of the tab-group. I think we can add actions there as long as they are for group management. The only actions in there are moving groups around, closing all in the group and we argue that the split action is important enough that it should be there as well. I think we can copy from other tab UIs but we can also evolve the UI to be better. To give an example, Eclipse uses tabs and also decided to use the space to the right for actions: I find this a very good use of space in that otherwise empty area. @joaomoreno we will not show the path when you enable tabs but you can see the path on hover. When disabling tabs we show the path as today. |
It is natural on Windows to have the X affordance to the right of the document and not to the left. This applies for both tabs enabled or disabled.
However, we should not just put the X to the right of the file label if you have tabs disabled because that means having an unstable location of the close button depending on the size of the file path. Instead, we should move this action to the far right, but clearly inside the tab and not outside. See #7060 for a related issue.
/cc @alexandrudima
The text was updated successfully, but these errors were encountered: