mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 08:16:13 +03:00
Merge pull request #844 from gpanders/tab-label-constraints
macos: ensure tab labels are always visible
This commit is contained in:
@ -90,6 +90,7 @@ class TerminalController: NSWindowController, NSWindowDelegate,
|
|||||||
]
|
]
|
||||||
let attributedString = NSAttributedString(string: " \(equiv) ", attributes: attributes)
|
let attributedString = NSAttributedString(string: " \(equiv) ", attributes: attributes)
|
||||||
let text = NSTextField(labelWithAttributedString: attributedString)
|
let text = NSTextField(labelWithAttributedString: attributedString)
|
||||||
|
text.setContentCompressionResistancePriority(.windowSizeStayPut, for: .horizontal)
|
||||||
window.tab.accessoryView = text
|
window.tab.accessoryView = text
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user