You can get tabs over web-content by simply adding z-index to tabbrowser-tabs. So adding this after vertical_tabs code should work:
:root:not([customizing],[chromehidden~="menubar"]){
--uc-vertical-tabs-width: 40px;
}
:root:not([customizing]) #tabbrowser-tabs:hover{
width: 220px !important;
z-index: 1;
}
But I’m not sure how you should make scrollbar not trigger expansion.
You should be able to simply set
z-index: 1
for#nav-bar
as well to not have tabs cover it. And then add margin to both tabs and the content-area to create empty space at right. Then you could also do some hackery to make the scrollbar display in that empty area and make it not respond to mouse events, that would cause the tabs to not expand when scrollbar is hovered. But of course that also means that the scrollbar cannot be clicked - basically it becomes just an indicator, which might be alright.So all in all you would add this to vertical_tabs.css:
:root:not([customizing],[chromehidden~="menubar"]){ --uc-vertical-tabs-width: 40px; } :root:not([customizing]) #tabbrowser-tabs:hover{ width: 220px !important; z-index: 1; } #nav-bar{ z-index: 1; } #main-window:not([inDOMFullscreen]) > body > #browser{ margin-right: calc(var(--uc-vertical-tabs-width) + 8px); } :root:not([customizing]) #tabbrowser-tabs{ margin-right: 8px; } #tabs-newtab-button, .tabbrowser-tab{ pointer-events: auto; } scrollbox[orient="horizontal"]{ scrollbar-width: thin; pointer-events: none; margin-right: -8px; }
The empty area on right might become “wrong” colored, but you can then just add whatever background-color you want for the
#main-window
Note, you said you have tabs on right side of window so the empty area only works with that.