diff --git a/CodeEdit/Features/UtilityArea/TerminalUtility/UtilityAreaTerminalTab.swift b/CodeEdit/Features/UtilityArea/TerminalUtility/UtilityAreaTerminalTab.swift index 26c8e8dda..6c16c1f7e 100644 --- a/CodeEdit/Features/UtilityArea/TerminalUtility/UtilityAreaTerminalTab.swift +++ b/CodeEdit/Features/UtilityArea/TerminalUtility/UtilityAreaTerminalTab.swift @@ -34,9 +34,16 @@ struct UtilityAreaTerminalTab: View { ) Label { - TextField("Name", text: terminalTitle) - .focused($isFocused) - .padding(.leading, -8) + if #available(macOS 14, *) { + // Fix the icon misplacement issue introduced since macOS 14 + TextField("Name", text: terminalTitle) + .focused($isFocused) + } else { + // A padding is needed for macOS 13 + TextField("Name", text: terminalTitle) + .focused($isFocused) + .padding(.leading, -8) + } } icon: { Image(systemName: "terminal") }