@@ -11,7 +11,7 @@ import {
1111import { ConnectionButton } from "@/app/block/connectionbutton" ;
1212import { DurableSessionFlyover } from "@/app/block/durable-session-flyover" ;
1313import { ContextMenuModel } from "@/app/store/contextmenu" ;
14- import { getConnStatusAtom , recordTEvent , WOS } from "@/app/store/global" ;
14+ import { recordTEvent , refocusNode , WOS } from "@/app/store/global" ;
1515import { globalStore } from "@/app/store/jotaiStore" ;
1616import { uxCloseBlock } from "@/app/store/keymodel" ;
1717import { RpcApi } from "@/app/store/wshclientapi" ;
@@ -141,7 +141,10 @@ const HeaderEndIcons = React.memo(({ viewModel, nodeModel, blockId }: HeaderEndI
141141 < OptMagnifyButton
142142 key = "unmagnify"
143143 magnified = { magnified }
144- toggleMagnify = { nodeModel . toggleMagnify }
144+ toggleMagnify = { ( ) => {
145+ nodeModel . toggleMagnify ( ) ;
146+ setTimeout ( ( ) => refocusNode ( blockId ) , 50 ) ;
147+ } }
145148 disabled = { magnifyDisabled }
146149 />
147150 ) ;
@@ -218,7 +221,13 @@ const BlockFrame_Header = ({
218221 />
219222 ) }
220223 { useTermHeader && termConfigedDurable != null && (
221- < DurableSessionFlyover key = "durable-status" blockId = { nodeModel . blockId } viewModel = { viewModel } placement = "bottom" divClassName = "iconbutton disabled text-[13px] ml-[-4px]" />
224+ < DurableSessionFlyover
225+ key = "durable-status"
226+ blockId = { nodeModel . blockId }
227+ viewModel = { viewModel }
228+ placement = "bottom"
229+ divClassName = "iconbutton disabled text-[13px] ml-[-4px]"
230+ />
222231 ) }
223232 < HeaderTextElems viewModel = { viewModel } blockData = { blockData } preview = { preview } error = { error } />
224233 < HeaderEndIcons viewModel = { viewModel } nodeModel = { nodeModel } blockId = { nodeModel . blockId } />
0 commit comments