@@ -419,7 +419,7 @@ def render_sidebar(self):
419419 return
420420
421421 sidebar_ref = use_sidebar ("builder-sidebar" , self .request .session )
422- if sidebar_ref .is_open :
422+ if sidebar_ref .is_open or sidebar_ref . is_mobile_open :
423423 gui .tag (
424424 "button" ,
425425 type = "submit" ,
@@ -436,14 +436,35 @@ def render_sidebar(self):
436436 with gui .div (className = "w-100 h-100" ):
437437 self ._render_gooey_builder ()
438438 else :
439- with gui .div (
440- className = "w-100 position-absolute" ,
441- style = {"bottom" : "10px" , "left" : "10px" },
442- ):
443- gooey_builder_open_button = gui .button (
444- label = "<i class='fa-regular fa-message-smile'></i> Chat Assistant" ,
445- className = "btn btn-secondary rounded-pill" ,
446- )
439+ with gui .styled ("& .gooey-builder-open-button:hover { scale: 1.2; }" ):
440+ with gui .div (
441+ className = "w-100 position-absolute" ,
442+ style = {"bottom" : "10px" , "left" : "10px" , "z-index" : "1000" },
443+ ):
444+ gooey_builder_open_button = gui .button (
445+ label = "<img src='https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/63bdb560-b891-11f0-b9bc-02420a00014a/generate-ai-abstract-symbol-artificial-intelligence-colorful-stars-icon-vector%201.jpg' style='width: 48px; height: 48px; border-radius: 50%;' />" ,
446+ className = "btn btn-secondary border-0 d-none d-lg-block p-0 gooey-builder-open-button" ,
447+ style = {
448+ "width" : "48px" ,
449+ "height" : "48px" ,
450+ "borderRadius" : "50%" ,
451+ "boxShadow" : "#0000001a 0 1px 4px, #0003 0 2px 12px" ,
452+ },
453+ )
454+ gooey_builder_mobile_open_button = gui .button (
455+ label = "<img src='https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/63bdb560-b891-11f0-b9bc-02420a00014a/generate-ai-abstract-symbol-artificial-intelligence-colorful-stars-icon-vector%201.jpg' style='width: 48px; height: 48px; border-radius: 50%;' />" ,
456+ className = "border-0 btn btn-secondary rounded-pill d-lg-none gooey-builder-open-button p-0" ,
457+ style = {
458+ "width" : "48px" ,
459+ "height" : "48px" ,
460+ "borderRadius" : "50%" ,
461+ "boxShadow" : "#0000001a 0 1px 4px, #0003 0 2px 12px" ,
462+ },
463+ )
464+ if gooey_builder_mobile_open_button :
465+ sidebar_ref .set_mobile_open (True )
466+ raise gui .RerunException ()
467+
447468 if gooey_builder_open_button :
448469 sidebar_ref .set_open (True )
449470 raise gui .RerunException ()
@@ -1252,6 +1273,7 @@ def _render_gooey_builder(self):
12521273 if not self .is_current_user_admin ():
12531274 return
12541275 render_gooey_builder_inline (self .slug_versions [- 1 ], gui .session_state )
1276+
12551277 # render_gooey_builder(
12561278 # page_slug=self.slug_versions[-1],
12571279 # builder_state=dict(
0 commit comments