File tree Expand file tree Collapse file tree 6 files changed +24
-17
lines changed Expand file tree Collapse file tree 6 files changed +24
-17
lines changed Original file line number Diff line number Diff line change 1
- <svg xmlns =" http://www.w3.org/2000/svg" width =" 20 " height =" 20 " viewBox =" 0 0 24 24" fill =" none" stroke =" currentColor" stroke-width =" 2" stroke-linecap =" round" stroke-linejoin =" round" >
1
+ <svg xmlns =" http://www.w3.org/2000/svg" class = " vertical-align " width =" 16 " height =" 16 " viewBox =" 0 0 24 24" fill =" none" stroke =" currentColor" stroke-width =" 2" stroke-linecap =" round" stroke-linejoin =" round" >
2
2
<path d =" m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72Z" />
3
3
<path d =" m14 7 3 3" />
4
4
<path d =" M5 6v4" />
Original file line number Diff line number Diff line change 1
- <svg xmlns =" http://www.w3.org/2000/svg" width =" 24 " height =" 24 " viewBox =" 0 0 24 24" fill =" none" stroke =" currentColor" stroke-width =" 2" stroke-linecap =" round" stroke-linejoin =" round" >
1
+ <svg xmlns =" http://www.w3.org/2000/svg" class = " vertical-align " width =" 16 " height =" 16 " viewBox =" 0 0 24 24" fill =" none" stroke =" currentColor" stroke-width =" 2" stroke-linecap =" round" stroke-linejoin =" round" >
2
2
<path d =" M18 6 6 18" />
3
3
<path d =" m6 6 12 12" />
4
4
</svg >
Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ body {
13
13
font-family : var (--sans-serif );
14
14
}
15
15
16
+ svg .vertical-align {
17
+ vertical-align : calc (-1 * var (--icon-adjust ));
18
+ }
19
+
16
20
svg .keepcolor {
17
21
fill : currentColor;
18
22
}
Original file line number Diff line number Diff line change 335
335
class =" action-button"
336
336
class:disabled ={opts ?.upgradeable === " transparent" }
337
337
on:click ={remixHandler }
338
- title =" Open in Remix"
339
338
>
340
339
<RemixIcon />
341
-
340
+ Open in Remix
342
341
</button >
343
342
<div slot =" content" >
344
343
Transparent upgradeable contracts are not supported on Remix.
437
436
}
438
437
}
439
438
>
440
- Deploy with Defender
439
+ < ArrowsLeft /> Deploy
441
440
</button >
442
441
</div >
443
442
{/if }
Original file line number Diff line number Diff line change 23
23
24
24
{#if isOpen }
25
25
<div
26
- class =" fixed right-3.5 rounded-r-3xl h-[calc(100vh-84px)] w-[360px] bg-white z-20 "
26
+ class =" fixed right-3.5 rounded-r-3xl h-[calc(100vh-84px)] w-[360px] bg-white z-30 "
27
27
transition:fly ={{x : 380 , duration : 450 }}
28
28
>
29
29
<div class =" p-2 h-full flex flex-col" >
40
40
id =" defender-deploy"
41
41
title =" Defender Deploy"
42
42
src ={devMode ? ' http://localhost:5173' : ' https://defender-deploy-wizard.netlify.app/' }
43
- class ={` fixed z-30 right-3.5 w-[360px] h-[calc(100vh-84px)] border-none
43
+ class ={` fixed z-30 right-3.5 w-[360px] h-[calc(100vh-84px)] border-none
44
44
${! showIframe ? ' invisible' : ' ' }
45
45
${! loaded ? ' hidden' : ' ' } ` }
46
46
on:load ={handleLoad }
Original file line number Diff line number Diff line change 155
155
</script >
156
156
157
157
<div class =" absolute bottom-8 right-8 h-[calc(100%-188px)]" >
158
- <div class ={` ${showing ? ' ' : ' hidden' } ${expanded ? ' w-[40rem]' : ' w-80' } max-w-[400px] min-h-[200px] absolute flex flex-col-reverse right-0 bottom-[4.5rem ] border-0 shadow-xl bg-gray-50 rounded-md animate-fade-up max-h-full overflow-y-auto z-50 ` }>
158
+ <div class ={` ${showing ? ' ' : ' hidden' } ${expanded ? ' w-[40rem]' : ' w-80' } max-w-[400px] min-h-[200px] absolute flex flex-col-reverse right-0 bottom-[3.75rem ] border-0 shadow-xl bg-gray-50 rounded-md animate-fade-up max-h-full overflow-y-auto z-20 ` }>
159
159
<div class ={` flex flex-col-reverse gap-3 overflow-y-auto p-4 h-[calc(100%-800px)] ` }>
160
160
<div class =" w-full flex items-center justify-between gap-2" >
161
161
<textarea bind:value ={input } on:keypress ={listener } placeholder =" Ask me anything..." class =" w-full text-sm shadow-lg h-32 p-4 rounded-md outline-none border-0 resize-none" />
235
235
</div >
236
236
</div >
237
237
</div >
238
- < button class = "z-50 absolute flex right-0 bottom-0 items-center justify-center border-0 shadow-xl bg-gray-50 h-16 w-16 p-4 rounded-full cursor-pointer hover:bg-white" on:click ={() => {
239
- showing = ! showing
240
- }}>
241
- { #if showing }
238
+ { #if showing }
239
+ < button class = "text-sm z-20 absolute flex right-0 bottom-1 items-center justify-center border-0 shadow-xl bg-gray-50 h-10 w-10 p-4 rounded-full cursor-pointer hover:bg-white" on:click ={() => {
240
+ showing = false
241
+ }}>
242
242
<div class =" animate-fade-in" >
243
243
<XIcon />
244
244
</div >
245
- {:else }
246
- <div class =" animate-fade-in" title =" AI Assistant" >
247
- <WizIcon />
245
+ </button >
246
+ {:else }
247
+ <button class ="text-sm z-20 absolute flex right-0 bottom-1 items-center justify-center border-0 shadow-xl bg-gray-50 h-10 w-32 p-4 rounded-full cursor-pointer hover:bg-white" on:click ={() => {
248
+ showing = true
249
+ }}>
250
+ <div class =" animate-fade-in" >
251
+ <WizIcon /> AI Assistant
248
252
</div >
249
- { /if }
250
- </ button >
253
+ </ button >
254
+ { /if }
251
255
</div >
You can’t perform that action at this time.
0 commit comments