@@ -44,11 +44,18 @@ const useStyles = makeStyles(
44
44
divider : {
45
45
width : 'calc(100% - 8px)' ,
46
46
} ,
47
+ actionButtonWrapper : {
48
+ border : '1px solid rgba(0, 0, 0, 0.12)' ,
49
+ borderRadius : 8 ,
50
+ background : 'white' ,
51
+ marginBottom : 8 ,
52
+ overflow : 'hidden'
53
+ } ,
47
54
actionButton : {
48
55
fontSize : '1.5rem' ,
49
56
color : 'rgba(0, 0, 0, 0.72)' ,
50
57
padding : 8 ,
51
- marginBottom : 8 ,
58
+ borderRadius : 0 ,
52
59
'&:hover' : {
53
60
color : 'rgba(0, 0, 0, 0.95)' ,
54
61
} ,
@@ -95,23 +102,26 @@ export const MermaidDiagramControls = (props: MermaidDiagramControlsProps) => {
95
102
96
103
return (
97
104
< div className = { classes . container } >
98
- < IconButton
99
- title = "Copy contents"
100
- aria-label = "Copy contents"
101
- className = { classes . actionButton }
102
- onClick = { handleCopyClick }
103
- >
104
- < FileCopyOutlined />
105
- </ IconButton >
106
- < IconButton
107
- title = "Download as SVG"
108
- aria-label = "Download diagram as SVG"
109
- className = { classes . actionButton }
110
- onClick = { handleSaveClick }
111
- >
112
- < SaveAltRounded />
113
- </ IconButton >
114
-
105
+ < div className = { classes . actionButtonWrapper } >
106
+ < IconButton
107
+ title = "Copy contents"
108
+ aria-label = "Copy contents"
109
+ className = { classes . actionButton }
110
+ onClick = { handleCopyClick }
111
+ >
112
+ < FileCopyOutlined />
113
+ </ IconButton >
114
+ </ div >
115
+ < div className = { classes . actionButtonWrapper } >
116
+ < IconButton
117
+ title = "Download as SVG"
118
+ aria-label = "Download diagram as SVG"
119
+ className = { classes . actionButton }
120
+ onClick = { handleSaveClick }
121
+ >
122
+ < SaveAltRounded />
123
+ </ IconButton >
124
+ </ div >
115
125
< div className = { classes . controlButtons } >
116
126
< IconButton
117
127
onClick = { handleZoomIn }
0 commit comments