@@ -71,11 +71,24 @@ function CanvasContainer(props: CanvasContainerProps): JSX.Element {
71
71
const buttonStyle : React . CSSProperties = {
72
72
textAlign : 'center' ,
73
73
color : '#ffffff' ,
74
- backgroundColor : '#151515 ' ,
74
+ backgroundColor : '#2D313A ' ,
75
75
zIndex : 0 ,
76
- border : '2px solid #0671e3' ,
77
76
whiteSpace : 'nowrap' ,
78
- textTransform : 'none'
77
+ textTransform : 'none' ,
78
+ padding : '10px' ,
79
+ borderRadius : '0'
80
+ } as const ;
81
+
82
+ const codePreviewStyle : React . CSSProperties = {
83
+ borderRadius : '10px'
84
+ } as const ;
85
+
86
+ const upArrowStyle : React . CSSProperties = {
87
+ borderRadius : '10px 0 0 10px'
88
+ } as const ;
89
+
90
+ const zoomOutStyle : React . CSSProperties = {
91
+ borderRadius : '0 10px 10px 0'
79
92
} as const ;
80
93
81
94
return (
@@ -87,16 +100,16 @@ function CanvasContainer(props: CanvasContainerProps): JSX.Element {
87
100
display : 'flex' ,
88
101
justifyContent : 'space-between' ,
89
102
zIndex : 999 ,
90
- padding : '20px'
103
+ padding : '20px 20px 5px 20px '
91
104
} }
92
105
>
93
- < Button style = { buttonStyle } onClick = { onClickCodePreview } >
106
+ < Button style = { { ... buttonStyle , ... codePreviewStyle } } onClick = { onClickCodePreview } >
94
107
< DeveloperMode />
95
108
</ Button >
96
109
{ ! state . codePreview && (
97
110
< div >
98
111
< Button
99
- style = { buttonStyle }
112
+ style = { { ... buttonStyle , ... upArrowStyle } }
100
113
onClick = { ( ) => {
101
114
container . scrollTop = 0 ;
102
115
} }
@@ -114,7 +127,7 @@ function CanvasContainer(props: CanvasContainerProps): JSX.Element {
114
127
< Button style = { buttonStyle } onClick = { zoomIn } >
115
128
< ZoomIn />
116
129
</ Button >
117
- < Button style = { buttonStyle } onClick = { zoomOut } >
130
+ < Button style = { { ... buttonStyle , ... zoomOutStyle } } onClick = { zoomOut } >
118
131
< ZoomOut />
119
132
</ Button >
120
133
</ div >
0 commit comments