File tree Expand file tree Collapse file tree 1 file changed +14
-13
lines changed Expand file tree Collapse file tree 1 file changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -70,9 +70,9 @@ export const Editor: FC = () => {
70
70
} , [ codeCopied ] ) ;
71
71
72
72
return (
73
- < ResizablePanel className = "flex flex-col items-start" >
73
+ < ResizablePanel className = "relative flex flex-col items-start" >
74
74
{ /* EDITOR TOP BAR */ }
75
- < div className = "flex w-full items-center justify-between border-b border-b-surface-quaternary pr-3" >
75
+ < div className = "flex h-12 w-full items-center justify-between border-b border-b-surface-quaternary pr-3" >
76
76
< div className = "flex" >
77
77
< button className = "flex w-fit min-w-[120px] items-center gap-1 border-x bg-surface-secondary px-4 py-3 text-content-primary transition-colors hover:bg-surface-tertiary" >
78
78
< FileJsonIcon className = "w-[18px] min-w-[18px]" />
@@ -125,24 +125,25 @@ export const Editor: FC = () => {
125
125
</ div >
126
126
127
127
{ /* CODE EDITOR */ }
128
- < div className = "relative h-full w-full overflow-y-scroll " >
128
+ < div className = "absolute mt-12 flex h-full w-full justify-end p-3 " >
129
129
< Button
130
- className = "absolute top-3 right-3 z-10"
130
+ className = "z-10"
131
131
variant = "subtle"
132
132
size = "sm"
133
133
onClick = { onCopy }
134
134
>
135
135
{ codeCopied ? < CheckIcon /> : < CopyIcon /> } Copy
136
136
</ Button >
137
- < div className = "h-full w-full bg-surface-secondary font-mono" >
138
- < CodeEditor
139
- value = { $code }
140
- onValueChange = { ( code ) => $setCode ( code ) }
141
- highlight = { ( code ) => hightlightWithLineNumbers ( code , languages . hcl ) }
142
- textareaId = "codeArea"
143
- className = "editor pt-3"
144
- />
145
- </ div >
137
+ </ div >
138
+
139
+ < div className = "h-full w-full overflow-y-scroll bg-surface-secondary font-mono" >
140
+ < CodeEditor
141
+ value = { $code }
142
+ onValueChange = { ( code ) => $setCode ( code ) }
143
+ highlight = { ( code ) => hightlightWithLineNumbers ( code , languages . hcl ) }
144
+ textareaId = "codeArea"
145
+ className = "editor pt-3"
146
+ />
146
147
</ div >
147
148
</ ResizablePanel >
148
149
) ;
You can’t perform that action at this time.
0 commit comments