File tree Expand file tree Collapse file tree 1 file changed +22
-5
lines changed Expand file tree Collapse file tree 1 file changed +22
-5
lines changed Original file line number Diff line number Diff line change 4
4
import { faPlusCircle } from ' @fortawesome/free-solid-svg-icons'
5
5
import Tailwind from " ./Tailwind.svelte" ;
6
6
import { loadInterpreter } from ' ./interpreter' ;
7
- import { pyodideLoaded , loadedEnvironments , navBarOpen } from ' ./stores' ;
7
+ import { pyodideLoaded , loadedEnvironments , navBarOpen , componentsNavOpen } from ' ./stores' ;
8
8
import Main from " ./Main.svelte" ;
9
9
import Header from " ./Header.svelte" ;
10
10
import SideNav from " ./SideNav.svelte" ;
11
+ import ComponentsNav from " ./ComponentsNav.svelte" ;
12
+ import ComponentDetailsNav from " ./ComponentDetailsNav.svelte" ;
11
13
12
14
let iconSize = 2 ;
13
15
let pyodideReadyPromise
41
43
});
42
44
}
43
45
46
+ function toggleComponentsNavBar(evt ){
47
+ componentsNavOpen .set (! $componentsNavOpen );
48
+ }
49
+
44
50
</script >
45
51
46
52
<svelte:head >
49
55
50
56
<style >
51
57
:global(div .dev-buttons-group ) {
52
- margin-top : -12 px ;
58
+ margin-top : -15 px ;
53
59
z-index : 9999 ;
54
60
}
55
61
56
62
:global(div .output ) {
57
- margin-top : -25px ;
58
63
z-index : 9999 ;
59
64
}
65
+
66
+ :global(div .buttons-box ) {
67
+ visibility : hidden ;
68
+ }
69
+
70
+ :global(.parentBox :hover .buttons-box ) {
71
+ visibility : visible ;
72
+ }
73
+
60
74
</style >
61
75
62
76
<Tailwind />
63
77
64
-
65
78
<div class =" flex flex-wrap bg-grey-light min-h-screen" >
66
79
<div >
67
80
<SideNav />
68
81
</div >
82
+ <div >
83
+ <ComponentsNav />
84
+ </div >
85
+ <div ><ComponentDetailsNav /></div >
69
86
<div id =" main" class =" w-full min-h-full absolute pin-r flex flex-col" >
70
87
<Header />
71
88
<div id =" add-component" class =" lex flex-column w-full text-lg" >
72
- <div style ="margin-left: 50%;" on:mouseenter ={bumpSize } on:mouseleave ={downSize }>
89
+ <div style ="margin-left: 50%;" on:mouseenter ={bumpSize } on:mouseleave ={downSize } on:click ={ toggleComponentsNavBar } >
73
90
<Fa icon ={faPlusCircle } class ="grow-icon" style ="transform: scale( {iconSize });" />
74
91
</div >
75
92
</div >
You can’t perform that action at this time.
0 commit comments