@@ -41,11 +41,11 @@ struct EditorAreaView: View {
4141 }
4242 }
4343
44- var editorInsetAmount : Double {
45- let tabBarHeight = shouldShowTabBar ? ( EditorTabBarView . height + 1 ) : 0
46- let jumpBarHeight = showEditorJumpBar ? ( EditorJumpBarView . height + 1 ) : 0
47- return tabBarHeight + jumpBarHeight
48- }
44+ // var editorInsetAmount: Double {
45+ // let tabBarHeight = shouldShowTabBar ? (EditorTabBarView.height + 1) : 0
46+ // let jumpBarHeight = showEditorJumpBar ? (EditorJumpBarView.height + 1) : 0
47+ // return tabBarHeight + jumpBarHeight
48+ // }
4949
5050 VStack {
5151 if let selected = editor. selectedTab {
@@ -55,9 +55,9 @@ struct EditorAreaView: View {
5555 textViewCoordinators: [ selected . rangeTranslator ] . compactMap ( { $0 } )
5656 )
5757 . focusedObject ( editor)
58- . transformEnvironment ( \. edgeInsets) { insets in
59- insets. top += editorInsetAmount
60- }
58+ // .transformEnvironment(\.edgeInsets) { insets in
59+ // insets.top += editorInsetAmount
60+ // }
6161 . opacity ( dimEditorsWithoutFocus && editor != editorManager. activeEditor ? 0.5 : 1 )
6262 } else {
6363 LoadingFileView ( selected. file. name)
@@ -73,14 +73,14 @@ struct EditorAreaView: View {
7373
7474 } else {
7575 CEContentUnavailableView ( " No Editor " )
76- . padding ( . top, editorInsetAmount)
76+ // .padding(.top, editorInsetAmount)
7777 . onTapGesture {
7878 editorManager. activeEditor = editor
7979 }
8080 }
8181 }
8282 . frame ( maxWidth: . infinity, maxHeight: . infinity)
83- . ignoresSafeArea ( . all)
83+ // .ignoresSafeArea(.all)
8484 . safeAreaInset ( edge: . top, spacing: 0 ) {
8585 VStack ( spacing: 0 ) {
8686 if shouldShowTabBar {
0 commit comments