File tree Expand file tree Collapse file tree 3 files changed +15
-23
lines changed Expand file tree Collapse file tree 3 files changed +15
-23
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ pub fn App() -> impl IntoView {
31
31
view ! {
32
32
<div class="flex h-screen" >
33
33
<Sidebar />
34
- <div>
35
- <main>
34
+ <div class= "flex flex-col flex-1 overflow-hidden" >
35
+ <main class= "flex-1 overflow-y-scroll" >
36
36
<Tabs value=tabs. selected_tab>
37
37
<For
38
38
each=move || ( 0 ..tabs. active_tabs. get( ) )
@@ -66,8 +66,8 @@ pub fn App() -> impl IntoView {
66
66
"+"
67
67
</Button >
68
68
</main>
69
+ <Footer />
69
70
</div>
70
- <Footer />
71
71
</div>
72
72
}
73
73
}
Original file line number Diff line number Diff line change @@ -23,24 +23,16 @@ pub fn Footer() -> impl IntoView {
23
23
<div class="flex flex-row gap-1 items-center text-xs" >
24
24
<p>{ formatted_timer} </p>
25
25
<button
26
- class=if table_view( ) == QueryTableLayout :: Records {
27
- "p-1 hover:bg-gray-300 rounded-full bg-gray-300"
28
- } else {
29
- "p-1 hover:bg-gray-300 rounded-full"
30
- }
31
-
26
+ class="p-1 hover:bg-gray-300 rounded-full"
27
+ class=( "bg-gray-300" , move || table_view( ) == QueryTableLayout :: Records )
32
28
on: click=move |_| table_view. set( QueryTableLayout :: Records )
33
29
>
34
30
35
31
<Icon icon=icondata:: HiBars4OutlineLg width="16" height="16" />
36
32
</button>
37
33
<button
38
- class=if table_view( ) == QueryTableLayout :: Grid {
39
- "p-1 hover:bg-gray-300 rounded-full bg-gray-300"
40
- } else {
41
- "p-1 hover:bg-gray-300 rounded-full"
42
- }
43
-
34
+ class="p-1 hover:bg-gray-300 rounded-full"
35
+ class=( "bg-gray-300" , move || table_view( ) == QueryTableLayout :: Grid )
44
36
on: click=move |_| table_view. set( QueryTableLayout :: Grid )
45
37
>
46
38
<Icon icon=icondata:: HiTableCellsOutlineLg width="16" height="16" />
Original file line number Diff line number Diff line change @@ -39,14 +39,14 @@ pub fn Sidebar() -> impl IntoView {
39
39
view ! {
40
40
<div
41
41
_ref=node_ref
42
- classes ="flex border-r-1 min-w-[320px] justify-between border-neutral-200 flex-col p-4"
42
+ class ="flex border-r-1 min-w-[320px] justify-between border-neutral-200 flex-col p-4"
43
43
>
44
44
<Connection show=show/>
45
- <div classes ="flex flex-col overflow-auto" >
46
- <div classes ="flex flex-row justify-between items-center" >
47
- <p classes ="font-semibold text-lg" >Projects </p>
45
+ <div class ="flex flex-col overflow-auto" >
46
+ <div class ="flex flex-row justify-between items-center" >
47
+ <p class ="font-semibold text-lg" >Projects </p>
48
48
<button
49
- classes ="px-2 rounded-full hover:bg-gray-200"
49
+ class ="px-2 rounded-full hover:bg-gray-200"
50
50
on: click=move |_| show. set( true )
51
51
>
52
52
"+"
@@ -58,9 +58,9 @@ pub fn Sidebar() -> impl IntoView {
58
58
children=|( project, _) | view! { <Project project=project/> }
59
59
/>
60
60
</div>
61
- <div classes ="py-2" >
62
- <p classes ="font-semibold text-lg" >Saved Queries </p>
63
- <div classes ="text-sm" >
61
+ <div class ="py-2" >
62
+ <p class ="font-semibold text-lg" >Saved Queries </p>
63
+ <div class ="text-sm" >
64
64
<Queries />
65
65
</div>
66
66
</div>
You can’t perform that action at this time.
0 commit comments