Skip to content

Commit 30ce77f

Browse files
committed
Style border radius, color, remove border, remove margin, and change padding for canvas buttons
1 parent f5da76b commit 30ce77f

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

app/src/components/main/CanvasContainer.tsx

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,24 @@ function CanvasContainer(props: CanvasContainerProps): JSX.Element {
7171
const buttonStyle: React.CSSProperties = {
7272
textAlign: 'center',
7373
color: '#ffffff',
74-
backgroundColor: '#151515',
74+
backgroundColor: '#2D313A',
7575
zIndex: 0,
76-
border: '2px solid #0671e3',
7776
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'
7992
} as const;
8093

8194
return (
@@ -87,16 +100,16 @@ function CanvasContainer(props: CanvasContainerProps): JSX.Element {
87100
display: 'flex',
88101
justifyContent: 'space-between',
89102
zIndex: 999,
90-
padding: '20px'
103+
padding: '20px 20px 5px 20px'
91104
}}
92105
>
93-
<Button style={buttonStyle} onClick={onClickCodePreview}>
106+
<Button style={{...buttonStyle, ...codePreviewStyle}} onClick={onClickCodePreview}>
94107
<DeveloperMode />
95108
</Button>
96109
{!state.codePreview && (
97110
<div>
98111
<Button
99-
style={buttonStyle}
112+
style={{...buttonStyle, ...upArrowStyle}}
100113
onClick={() => {
101114
container.scrollTop = 0;
102115
}}
@@ -114,7 +127,7 @@ function CanvasContainer(props: CanvasContainerProps): JSX.Element {
114127
<Button style={buttonStyle} onClick={zoomIn}>
115128
<ZoomIn />
116129
</Button>
117-
<Button style={buttonStyle} onClick={zoomOut}>
130+
<Button style={{...buttonStyle, ...zoomOutStyle}} onClick={zoomOut}>
118131
<ZoomOut />
119132
</Button>
120133
</div>

0 commit comments

Comments
 (0)