File tree Expand file tree Collapse file tree 2 files changed +21
-12
lines changed
packages/imagekit-editor-dev/src/components Expand file tree Collapse file tree 2 files changed +21
-12
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export function EditorWrapper({ children }: EditorWrapperProps) {
88 return (
99 < Box
1010 position = "fixed"
11- zIndex = "modal "
11+ zIndex = "2100 "
1212 height = "100vh"
1313 width = "100vw"
1414 top = { 0 }
Original file line number Diff line number Diff line change @@ -57,13 +57,14 @@ export const Header = ({ onClose, exportOptions }: HeaderProps) => {
5757 alignItems = "center"
5858 flexDirection = "row"
5959 px = "1rem"
60+ paddingRight = "0"
6061 borderBottomWidth = "1px"
6162 borderBottomColor = "editorBattleshipGrey.100"
62- gap = "4"
6363 flexShrink = { 0 }
6464 >
6565 < Icon
6666 boxSize = { "5" }
67+ mr = "4"
6768 as = { imageList . length === 1 ? PiImageSquare : PiImagesSquare }
6869 />
6970 < Text > { headerText } </ Text >
@@ -87,23 +88,28 @@ export const Header = ({ onClose, exportOptions }: HeaderProps) => {
8788 aria-label = { exportOption . label }
8889 variant = "ghost"
8990 fontWeight = "normal"
91+ height = "full"
92+ borderRadius = "0"
93+ px = "8"
9094 size = "sm"
9195 onClick = { ( ) => exportOption . onClick ( imageList , currentImage ) }
9296 >
9397 { exportOption . label }
9498 </ Button >
9599 ) : (
96100 < Menu key = { `export-menu-${ exportOption . label } ` } >
97- < MenuButton >
98- < Button
99- leftIcon = { exportOption . icon }
100- aria-label = { exportOption . label }
101- variant = "ghost"
102- fontWeight = "normal"
103- size = "sm"
104- >
105- { exportOption . label }
106- </ Button >
101+ < MenuButton
102+ as = { Button }
103+ leftIcon = { exportOption . icon }
104+ aria-label = { exportOption . label }
105+ variant = "ghost"
106+ fontWeight = "normal"
107+ height = "full"
108+ borderRadius = "0"
109+ px = "8"
110+ size = "sm"
111+ >
112+ { exportOption . label }
107113 </ MenuButton >
108114 < MenuList >
109115 { exportOption . options
@@ -132,6 +138,9 @@ export const Header = ({ onClose, exportOptions }: HeaderProps) => {
132138 onClick = { onClose }
133139 variant = "ghost"
134140 fontWeight = "normal"
141+ height = "full"
142+ borderRadius = "0"
143+ px = "8"
135144 size = "sm"
136145 >
137146 Close
You can’t perform that action at this time.
0 commit comments