File tree Expand file tree Collapse file tree
packages/ui/src/components/editor/settings Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111}
1212
1313.container {
14- border-radius : 10px ;
1514 color : var (--vscode-sideBarTitle-foreground );
16- background-color : var (--cwc-bg-tertiary );
17- overflow : hidden ;
15+
1816
1917 > div {
2018 border-top : 1px solid var (--cwc-border-color-dimmed );
Original file line number Diff line number Diff line change 22 display : flex ;
33 flex-direction : column ;
44 gap : 6px ;
5+ background-color : var (--cwc-bg-tertiary );
6+
7+ & --hoverable :hover:not (:has (button :hover , a :hover )) {
8+ background-color : var (--vscode-toolbar-hoverBackground );
9+ }
10+
11+ & :first-child {
12+ border-top-left-radius : 10px ;
13+ border-top-right-radius : 10px ;
14+ }
15+
16+ & :last-child {
17+ border-bottom-left-radius : 10px ;
18+ border-bottom-right-radius : 10px ;
19+ }
520}
621
722.main {
1530 cursor : pointer ;
1631 user-select : none ;
1732 }
18-
19- & --hoverable :hover:not (:has (button :hover , a :hover )) {
20- background-color : var (--vscode-toolbar-hoverBackground );
21- }
2233}
2334
2435.content {
Original file line number Diff line number Diff line change @@ -19,11 +19,14 @@ export const Item: React.FC<Props> = (props) => {
1919 const [ is_expanded , set_is_expanded ] = useState ( false )
2020
2121 return (
22- < div className = { styles . container } >
22+ < div
23+ className = { cn ( styles . container , {
24+ [ styles [ 'container--hoverable' ] ] : props . is_toggleable && ! is_expanded
25+ } ) }
26+ >
2327 < div
2428 className = { cn ( styles . main , {
2529 [ styles [ 'main--toggleable' ] ] : props . is_toggleable ,
26- [ styles [ 'main--hoverable' ] ] : props . is_toggleable && ! is_expanded
2730 } ) }
2831 onClick = { props . is_toggleable ? ( ) => set_is_expanded ( ! is_expanded ) : undefined }
2932 >
You can’t perform that action at this time.
0 commit comments