You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tabs: border-top is thicker in first column tabs compared to other rows #50933
Benjamin Pasero (@bpasero) The :before element isn't taking any space away. It uses a value of z-index > 0 so it gets drawn on top of the tab border (which isn't really a border but a box-shadow).
You seem to have a z-index problem, because the minimum z-index that makes the sash border go behind the tab border is 0. But with 0, vertical sashes don't appear at all... probably there's something z-index > 0 in the editor which covers them.
Unfortunately I don't have a great idea but to make the box-shadow 3px high, for tabs which are not on the first view.
João Moreno (@joaomoreno) yeah, my thinking as well. Do you have a CSS rule I can use that makes that change only for those tabs that are in the grid in that position?
João Moreno (@joaomoreno) even with a border-top: 1px solid red I need to use a 2px border for tabs that are below the sash-separator to make it show up.
Activity
joaomoreno commentedon Jun 6, 2018
Benjamin Pasero (@bpasero) The
:beforeelement isn't taking any space away. It uses a value ofz-index > 0so it gets drawn on top of the tab border (which isn't really a border but abox-shadow).You seem to have a
z-indexproblem, because the minimumz-indexthat makes the sash border go behind the tab border is 0. But with 0, vertical sashes don't appear at all... probably there's somethingz-index > 0in the editor which covers them.joaomoreno commentedon Jun 6, 2018
That something is the actual
monaco-editorinstance... thought it doesn't set thez-index... it just follows DOM order. Hmmmm sad!Unfortunately I don't have a great idea but to make the
box-shadow3px high, for tabs which are not on the first view.bpasero commentedon Jun 7, 2018
João Moreno (@joaomoreno) yeah, my thinking as well. Do you have a CSS rule I can use that makes that change only for those tabs that are in the grid in that position?
joaomoreno commentedon Jun 7, 2018
Unfortunately not... Why don't you make the tab border push down its contents?
bpasero commentedon Jun 7, 2018
😱
joaomoreno commentedon Jun 7, 2018
So, instead of
box-shadow, really useborder-box.bpasero commentedon Jun 8, 2018
João Moreno (@joaomoreno) even with a
border-top: 1px solid redI need to use a2pxborder for tabs that are below the sash-separator to make it show up.joaomoreno commentedon Jun 8, 2018
Oh. Damn! We might have to find that CSS rule then. 😆
bpasero commentedon Jun 8, 2018
João Moreno (@joaomoreno) yeah, in a text adventure I would simply do "Use Joao with CSS problem" and it would probably work.
joaomoreno commentedon Jun 11, 2018
As discussed, let's add some information in the DOM to indicate where grid nodes are in the grid.
joaomoreno commentedon Jun 12, 2018
Let's try to move the tab border to a
:before:element, just like the splitview separator:https://github.com/Microsoft/vscode/blob/master/src/vs/base/browser/ui/splitview/splitview.ts#L181
fix #50933 and #50677
joaomoreno commentedon Jun 14, 2018
Benjamin Pasero (@bpasero) Good job!