@@ -152,7 +152,12 @@ removeSidebarChatSubDockedCell // beginDefinition;
152152
153153removeSidebarChatSubDockedCell [ nbo_ NotebookObject , sidebarCell_ CellObject ] := Module [ { subDockedCell },
154154 subDockedCell = First [ Cells [ sidebarCell , CellTags -> "SidebarSubDockedCell" ], Missing @ "NoSidebarSubDockedCell" ];
155- If [ ! MissingQ @ subDockedCell , NotebookDelete @ subDockedCell ]
155+ If [ ! MissingQ @ subDockedCell ,
156+ FrontEndExecute [ {
157+ FrontEnd ` SetOptions [ subDockedCell , Deletable -> True ],
158+ FrontEnd ` NotebookDelete @ subDockedCell
159+ } ]
160+ ]
156161];
157162
158163removeSidebarChatSubDockedCell // endDefinition ;
@@ -162,7 +167,11 @@ removeSidebarChatSubDockedCell // endDefinition;
162167(*removeSidebarTopCell*)
163168removeSidebarTopCell // beginDefinition ;
164169
165- removeSidebarTopCell [ nbo_ NotebookObject , sidebarTopCell_ CellObject ] := NotebookDelete @ sidebarTopCell ;
170+ removeSidebarTopCell [ nbo_ NotebookObject , sidebarTopCell_ CellObject ] :=
171+ FrontEndExecute [ {
172+ FrontEnd ` SetOptions [ sidebarTopCell , Deletable -> True ],
173+ FrontEnd ` NotebookDelete @ sidebarTopCell
174+ } ];
166175
167176removeSidebarTopCell // endDefinition ;
168177
@@ -173,7 +182,12 @@ removeSidebarScrollingContentCell // beginDefinition;
173182
174183removeSidebarScrollingContentCell [ nbo_ NotebookObject , sidebarCell_ CellObject ] := Module [ { scrollablePaneCell },
175184 scrollablePaneCell = First [ Cells [ sidebarCell , CellTags -> "SidebarScrollingContentCell" ], Missing @ "NoScrollingSidebarCell" ];
176- If [ ! MissingQ @ scrollablePaneCell , NotebookDelete @ scrollablePaneCell ]
185+ If [ ! MissingQ @ scrollablePaneCell ,
186+ FrontEndExecute [ {
187+ FrontEnd ` SetOptions [ scrollablePaneCell , Deletable -> True ],
188+ FrontEnd ` NotebookDelete @ scrollablePaneCell
189+ } ]
190+ ]
177191];
178192
179193removeSidebarScrollingContentCell // endDefinition ;
@@ -536,9 +550,10 @@ toolbarButtonLabel0[ iconName_String, None, color_, {styleOpts___}, {gridOpts___
536550 Grid [
537551 { { chatbookIcon [ "WorkspaceToolbarIcon" <> iconName , False , color ] } },
538552 gridOpts ,
539- Spacings -> 0.25 ,
540- Alignment -> { {Left , Right }, Baseline },
541- BaselinePosition -> { 1 , 1 }
553+ Alignment -> { {Left , Right }, Baseline },
554+ BaseStyle -> { LineBreakWithin -> False },
555+ BaselinePosition -> { 1 , 1 },
556+ Spacings -> 0.25
542557 ];
543558
544559toolbarButtonLabel0 [ iconName_ String , label_ , color_ , {styleOpts___ }, {gridOpts___ }] :=
@@ -548,9 +563,10 @@ toolbarButtonLabel0[ iconName_String, label_, color_, {styleOpts___}, {gridOpts_
548563 Style [ label , If [ $AppType === "SidebarChat" , "NotebookAssistant`Sidebar`ToolbarButtonLabel" , "WorkspaceChatToolbarButtonLabel" ], styleOpts ]
549564 } },
550565 gridOpts ,
551- Spacings -> 0.25 ,
552- Alignment -> { {Left , Right }, Baseline },
553- BaselinePosition -> { 1 , 2 }
566+ Alignment -> { {Left , Right }, Baseline },
567+ BaseStyle -> { LineBreakWithin -> False },
568+ BaselinePosition -> { 1 , 2 },
569+ Spacings -> 0.25
554570 ];
555571
556572toolbarButtonLabel0 // endDefinition ;
@@ -1614,7 +1630,7 @@ DynamicModule[ { Typeset`menuActiveQ = False },
16141630 CellTags -> "CustomActionMenu" ,
16151631 Magnification -> AbsoluteCurrentValue [ EvaluationNotebook [ ], Magnification ]* If [ cellTaggedQ [ topParentCell @ EvaluationCell [ ], "SidebarTopCell" ], 0.85 , 1. ]
16161632 ],
1617- { Left , Bottom }, 0 , { Left , Top },
1633+ Sequence @@ If [ Last [ MousePosition [ "ViewScaled" ], 0 ] > 0.78 , { { Left , Top }, 0 , { Left , Bottom } }, { { Left , Bottom }, 0 , { Left , Top } } ] ,
16181634 RemovalConditions -> "MouseExit" ]) },
16191635 PassEventsDown -> True ,
16201636 Method -> "Preemptive" ,
0 commit comments