@@ -6187,7 +6187,7 @@ class Hi {
61876187 */
61886188 async toggleLayoutMode ( ) {
61896189 try {
6190- this . isVerticalMode ? ( this . verticalPosition = { ...this . position } , this . position = this . horizontalPosition || { x : 100 , y : 100 } ) : ( this . horizontalPosition = { ...this . position } , this . position = this . verticalPosition || { x : 100 , y : 100 } ) , this . isVerticalMode = ! this . isVerticalMode , await this . saveLayoutMode ( ) , await this . createTabsUI ( ) , this . log ( `📐 布局模式已切换为: ${ this . isVerticalMode ? "垂直" : "水平" } ` ) ;
6190+ this . isVerticalMode ? ( this . verticalPosition = { ...this . position } , this . position = this . horizontalPosition || { x : 100 , y : 100 } ) : ( this . horizontalPosition = { ...this . position } , this . position = this . verticalPosition || { x : 100 , y : 100 } ) , this . isVerticalMode = ! this . isVerticalMode , ! this . isVerticalMode && this . enableBubbleMode && ( this . enableBubbleMode = ! 1 , this . isBubbleExpanded = ! 1 , this . verboseLog ( "🫧 切换到水平模式,已自动禁用气泡模式" ) ) , await this . saveLayoutMode ( ) , await this . createTabsUI ( ) , this . log ( `📐 布局模式已切换为: ${ this . isVerticalMode ? "垂直" : "水平" } ` ) ;
61916191 } catch ( e ) {
61926192 this . error ( "切换布局模式失败:" , e ) ;
61936193 }
@@ -8991,14 +8991,14 @@ class Hi {
89918991 this . isVerticalMode ,
89928992 this . verticalPosition ,
89938993 this . horizontalPosition
8994- ) , this . isSidebarAlignmentEnabled = t . isSidebarAlignmentEnabled , this . isFloatingWindowVisible = t . isFloatingWindowVisible , this . showBlockTypeIcons = t . showBlockTypeIcons , this . showInHeadbar = t . showInHeadbar , this . horizontalTabMaxWidth = t . horizontalTabMaxWidth , this . horizontalTabMinWidth = t . horizontalTabMinWidth , this . enableEdgeHide = t . enableEdgeHide , this . enableBubbleMode = t . enableBubbleMode , this . log ( `📐 布局模式已恢复: ${ je ( t ) } , 当前位置: (${ this . position . x } , ${ this . position . y } )` ) , this . isSidebarAlignmentEnabled && ( this . startSidebarAlignmentObserver ( ) , this . log ( "🔄 侧边栏对齐监听器已启动" ) ) ;
8994+ ) , this . isSidebarAlignmentEnabled = t . isSidebarAlignmentEnabled , this . isFloatingWindowVisible = t . isFloatingWindowVisible , this . showBlockTypeIcons = t . showBlockTypeIcons , this . showInHeadbar = t . showInHeadbar , this . horizontalTabMaxWidth = t . horizontalTabMaxWidth , this . horizontalTabMinWidth = t . horizontalTabMinWidth , this . enableEdgeHide = t . enableEdgeHide , this . enableBubbleMode = t . enableBubbleMode , ! this . isVerticalMode && this . enableBubbleMode && ( this . enableBubbleMode = ! 1 , this . isBubbleExpanded = ! 1 , this . verboseLog ( "🫧 恢复配置:水平模式不支持气泡模式,已自动禁用" ) ) , this . log ( `📐 布局模式已恢复: ${ je ( t ) } , 当前位置: (${ this . position . x } , ${ this . position . y } )` ) , this . isSidebarAlignmentEnabled && ( this . startSidebarAlignmentObserver ( ) , this . log ( "🔄 侧边栏对齐监听器已启动" ) ) ;
89958995 } else {
89968996 const t = V ( ) ;
89978997 this . isVerticalMode = t . isVerticalMode , this . verticalWidth = t . verticalWidth , this . verticalPosition = t . verticalPosition , this . horizontalPosition = t . horizontalPosition , this . horizontalTabMaxWidth = t . horizontalTabMaxWidth , this . horizontalTabMinWidth = t . horizontalTabMinWidth , this . enableEdgeHide = t . enableEdgeHide , this . enableBubbleMode = t . enableBubbleMode , this . position = re (
89988998 this . isVerticalMode ,
89998999 this . verticalPosition ,
90009000 this . horizontalPosition
9001- ) , this . log ( "📐 布局模式: 水平 (默认)" ) ;
9001+ ) , ! this . isVerticalMode && this . enableBubbleMode && ( this . enableBubbleMode = ! 1 , this . isBubbleExpanded = ! 1 , this . verboseLog ( "🫧 默认配置:水平模式不支持气泡模式,已自动禁用" ) ) , this . log ( "📐 布局模式: 水平 (默认)" ) ;
90029002 }
90039003 } catch ( e ) {
90049004 this . error ( "恢复布局模式失败:" , e ) ;
0 commit comments