File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed
examples/landing/components/editor Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ function StyledRadio(props) {
7
7
< Radio
8
8
disableRipple
9
9
color = "default"
10
+ size = "small"
10
11
sx = { {
11
12
'&.Mui-checked' : {
12
13
color : 'rgb(19, 115, 230)' ,
Original file line number Diff line number Diff line change
1
+ import classNames from 'classnames' ;
1
2
import React from 'react' ;
2
3
import { styled } from 'styled-components' ;
3
4
@@ -13,13 +14,15 @@ const SidebarItemDiv = styled.div<{ $visible?: boolean; $height?: string }>`
13
14
? `1`
14
15
: 'unset' } ;
15
16
color: #545454;
17
+ border-bottom: 1px solid transparent;
18
+ border-color: ${ ( props ) => ( props . $visible ? '#eee' : 'transparent' ) } ;
16
19
` ;
17
20
18
21
const Chevron = styled . a < { $visible : boolean } > `
19
22
transform: rotate(${ ( props ) => ( props . $visible ? 180 : 0 ) } deg);
20
23
svg {
21
- width: 8px ;
22
- height: 8px ;
24
+ width: 10px ;
25
+ height: 10px ;
23
26
}
24
27
` ;
25
28
@@ -30,6 +33,7 @@ export type SidebarItemProps = {
30
33
visible ?: boolean ;
31
34
onChange ?: ( bool : boolean ) => void ;
32
35
children ?: React . ReactNode ;
36
+ className ?: string ;
33
37
} ;
34
38
35
39
const HeaderDiv = styled . div `
@@ -47,12 +51,13 @@ export const SidebarItem: React.FC<SidebarItemProps> = ({
47
51
children,
48
52
height,
49
53
onChange,
54
+ className,
50
55
} ) => {
51
56
return (
52
57
< SidebarItemDiv
53
58
$visible = { visible }
54
59
$height = { height }
55
- className = " flex flex-col"
60
+ className = { classNames ( ' flex flex-col' , className ) }
56
61
>
57
62
< HeaderDiv
58
63
onClick = { ( ) => {
@@ -67,7 +72,7 @@ export const SidebarItem: React.FC<SidebarItemProps> = ({
67
72
< h2 className = "text-xs uppercase" > { title } </ h2 >
68
73
</ div >
69
74
< Chevron $visible = { visible } >
70
- < Arrow />
75
+ < Arrow viewBox = "-2 -1 12 12" />
71
76
</ Chevron >
72
77
</ HeaderDiv >
73
78
{ visible ? (
Original file line number Diff line number Diff line change @@ -151,6 +151,7 @@ export const Sidebar = () => {
151
151
height = { ! layersVisible ? 'full' : '55%' }
152
152
visible = { toolbarVisible }
153
153
onChange = { ( val ) => setToolbarVisible ( val ) }
154
+ className = "overflow-auto"
154
155
>
155
156
< Toolbar />
156
157
</ SidebarItem >
You can’t perform that action at this time.
0 commit comments