Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion styles/tree-view.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
z-index: 2;
-webkit-user-select: none;

> ol {
display: flex;
flex-direction: column;

.full-menu {
/*
* Force a new stacking context to prevent a large, duplicate paint layer from
* being created for tree-view's scrolling contents that can make the cost of
Expand All @@ -26,6 +29,18 @@
padding-left: @component-icon-padding;
padding-right: @component-padding;
background-color: inherit;

// Expands .full-menu to take up full height.
// This makes sure that the context menu can still be openend in the empty
// area underneath the files.
flex-grow: 1;
}

.full-menu.list-tree {
// Expands .full-menu to take up as much width as needed by the content.
// This makes sure that the selected item's "bar/background" expands to full width.
position: relative;
min-width: min-content;
}

.header {
Expand Down