Update gradio_sidebar.py
Browse files- gradio_sidebar.py +9 -8
gradio_sidebar.py
CHANGED
@@ -37,28 +37,29 @@ head="""
|
|
37 |
</script>
|
38 |
"""
|
39 |
css="""
|
40 |
-
|
41 |
position: fixed;
|
42 |
right: 100%;
|
43 |
-
z-index:
|
44 |
width: 40%;
|
45 |
top: 50px;
|
46 |
box-shadow: 0 0 12px 0px black;
|
47 |
transition: right 0.5s ease;
|
48 |
}
|
49 |
-
|
50 |
right: 60%;
|
51 |
}
|
52 |
-
|
53 |
position: fixed;
|
54 |
-
|
|
|
55 |
z-index: 9999;
|
56 |
-
width:
|
57 |
top: 50px;
|
58 |
-
box-shadow:
|
59 |
transition: right 0.5s linear;
|
60 |
}
|
61 |
-
|
62 |
right: 60%;
|
63 |
}
|
64 |
#top_control_btn {
|
|
|
37 |
</script>
|
38 |
"""
|
39 |
css="""
|
40 |
+
#gs_top_control_panel {
|
41 |
position: fixed;
|
42 |
right: 100%;
|
43 |
+
z-index: 999999;
|
44 |
width: 40%;
|
45 |
top: 50px;
|
46 |
box-shadow: 0 0 12px 0px black;
|
47 |
transition: right 0.5s ease;
|
48 |
}
|
49 |
+
#gs_top_control_panel.open {
|
50 |
right: 60%;
|
51 |
}
|
52 |
+
#gs_left_control_panel {
|
53 |
position: fixed;
|
54 |
+
width: fit-content;
|
55 |
+
left: -110%;
|
56 |
z-index: 9999;
|
57 |
+
width: 330px;
|
58 |
top: 50px;
|
59 |
+
box-shadow: black 0px 0px 12px 0px;
|
60 |
transition: right 0.5s linear;
|
61 |
}
|
62 |
+
#gs_left_control_panel.open {
|
63 |
right: 60%;
|
64 |
}
|
65 |
#top_control_btn {
|