Skip to content

Tabs: border-top is thicker in first column tabs compared to other rows #50933

Closed

Description

That is because the grid-sash trick we are currently using is adding a ::before element that takes away 1px of the thickness of the border:

image

This might improve when the grid widget implements a way for me to specify the color of sashes (João Moreno (@joaomoreno) )

Activity

  1. added
    bug
    workbench-editor-grid
    on Jun 1, 2018
  2. joaomoreno commented on Jun 6, 2018

    @joaomoreno
    Contributor

    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.

  3. joaomoreno commented on Jun 6, 2018

    @joaomoreno
    Contributor

    That something is the actual monaco-editor instance... thought it doesn't set the z-index... it just follows DOM order. Hmmmm sad!

    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.

  4. bpasero commented on Jun 7, 2018

    @bpasero
    ContributorAuthor

    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?

  5. joaomoreno commented on Jun 7, 2018

    @joaomoreno
    Contributor

    Unfortunately not... Why don't you make the tab border push down its contents?

  6. bpasero commented on Jun 7, 2018

    @bpasero
    ContributorAuthor

    😱

  7. joaomoreno commented on Jun 7, 2018

    @joaomoreno
    Contributor

    So, instead of box-shadow, really use border-box.

  8. bpasero commented on Jun 8, 2018

    @bpasero
    ContributorAuthor

    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.

  9. joaomoreno commented on Jun 8, 2018

    @joaomoreno
    Contributor

    Oh. Damn! We might have to find that CSS rule then. 😆

  10. bpasero commented on Jun 8, 2018

    @bpasero
    ContributorAuthor

    João Moreno (@joaomoreno) yeah, in a text adventure I would simply do "Use Joao with CSS problem" and it would probably work.

  11. joaomoreno commented on Jun 11, 2018

    @joaomoreno
    Contributor

    As discussed, let's add some information in the DOM to indicate where grid nodes are in the grid.

  12. joaomoreno commented on Jun 12, 2018

    @joaomoreno
    Contributor
  13. added a commit that references this issue on Jun 13, 2018
    5946a4f
  14. joaomoreno commented on Jun 14, 2018

    @joaomoreno
    Contributor
  15. added
    verified
    on Jun 28, 2018
  16. locked and limited conversation to collaborators on Jul 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugverifiedworkbench-editor-grid

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions