File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,8 +97,8 @@ def __init__(
9797 },
9898 projection : str = "mercator" ,
9999 use_message_queue : bool = None ,
100- add_sidebar : bool = False ,
101- add_floating_sidebar : bool = True ,
100+ add_sidebar : Optional [ bool ] = None ,
101+ add_floating_sidebar : Optional [ bool ] = None ,
102102 sidebar_visible : bool = False ,
103103 sidebar_width : int = 360 ,
104104 sidebar_args : Optional [Dict ] = None ,
@@ -260,6 +260,17 @@ def __init__(
260260 ]
261261 )
262262
263+ if add_sidebar is None and add_floating_sidebar is None :
264+ add_sidebar = False
265+ add_floating_sidebar = True
266+ elif add_sidebar :
267+ add_floating_sidebar = False
268+ elif add_floating_sidebar :
269+ add_sidebar = False
270+ else :
271+ add_sidebar = False
272+ add_floating_sidebar = False
273+
263274 if sidebar_args is None :
264275 sidebar_args = {}
265276 if "sidebar_visible" not in sidebar_args :
You can’t perform that action at this time.
0 commit comments