Merge pull request #844 from gpanders/tab-label-constraints

macos: ensure tab labels are always visible
This commit is contained in:
Mitchell Hashimoto
2023-11-08 09:22:14 -08:00
committed by GitHub

View File

@ -90,6 +90,7 @@ class TerminalController: NSWindowController, NSWindowDelegate,
]
let attributedString = NSAttributedString(string: " \(equiv) ", attributes: attributes)
let text = NSTextField(labelWithAttributedString: attributedString)
text.setContentCompressionResistancePriority(.windowSizeStayPut, for: .horizontal)
window.tab.accessoryView = text
}
}