Skip to content

Commit 6725c89

Browse files
authored
Change sidebar splitter CSS to only apply to the sidebar, not to all splitters under .DetailsContainer (#6114)
For the function list, we'll want to split the "main content" of the panel into the list on the left and the "wings" on the right, with a splitter. But this splitter should look like a normal splitter, not like the extra thick sidebar splitter. But these sidebar splitter rules were applying to all splitters under .DetailsContainer; this reduces the scope to only apply to the actual sidebar splitter.
2 parents 26147cc + 81b3bdb commit 6725c89

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

src/components/app/DetailsContainer.css

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,23 @@
66
contain: size;
77
}
88

9-
.DetailsContainer .resizableWithSplitterInner > * {
10-
min-width: 0;
11-
flex: 1;
12-
}
13-
149
.DetailsContainerResizableSidebarWrapper {
1510
max-width: 600px;
1611
}
1712

1813
/* overriding defaults from ResizableWithSplitter.css */
19-
.DetailsContainer .resizableWithSplitterSplitter {
14+
.DetailsContainerResizableSidebarWrapper > .resizableWithSplitterSplitter {
2015
border-top: 1px solid var(--panel-border-color);
2116
border-left: 1px solid var(--panel-border-color);
2217
background: var(--panel-background-color); /* Same background as sidebars */
2318
}
2419

25-
.DetailsContainer .resizableWithSplitterSplitter:hover {
20+
.DetailsContainerResizableSidebarWrapper
21+
> .resizableWithSplitterSplitter:hover {
2622
background: var(--panel-background-color); /* same as the border above */
2723
}
24+
25+
.DetailsContainerResizableSidebarWrapper > .resizableWithSplitterInner > * {
26+
min-width: 0;
27+
flex: 1;
28+
}

0 commit comments

Comments
 (0)